This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 2009-09-09_15-03-51 ) Java: 1.5.0_17-ea; Java HotSpot(TM) 64-Bit Server VM 1.5.0_17-ea-b01 if you have error in yaml file then the first line is underlined even if the error occurred on another line consider the example below. i have forgotten to press space after 'type:' on last line. The error is indicated on the first line. My real example has about 200 lines and this makes difficult to find an error even in this small file. site: tableName: site columns: id: type: integer(4) primary: true autoincrement: true name: string(255) relations: content: local: id foreign: site_id type:many #forgotten
Petre P, could this be related to your changes? Or did we always have this?
No, was already before. I have talked about this with Filip.
Created attachment 87610 [details] corrupted file
The YamlParser was able to find the possition only for the parser exceptions. I add a code, with is able to do it also for scanner exception. Should be fixed now.
Integrated into 'main-golden', will be available in build *200909151512* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e688df6f8b69 User: Petr Pisl <ppisl@netbeans.org> Log: #172090 - error in yaml files is incorrectly underlined