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.

Bug 172090 - error in yaml files is incorrectly underlined
Summary: error in yaml files is incorrectly underlined
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: YAML (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-12 17:47 UTC by Filip Zamboj
Modified: 2009-09-16 01:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
corrupted file (3.81 KB, text/plain)
2009-09-14 14:32 UTC, Filip Zamboj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2009-09-12 17:47:57 UTC
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
Comment 1 Petr Jiricka 2009-09-14 14:00:36 UTC
Petre P, could this be related to your changes? Or did we always have this?
Comment 2 Petr Pisl 2009-09-14 14:07:24 UTC
No, was already before. I have talked about this with Filip.
Comment 3 Filip Zamboj 2009-09-14 14:32:08 UTC
Created attachment 87610 [details]
corrupted file
Comment 4 Petr Pisl 2009-09-14 15:24:09 UTC
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. 
Comment 5 Quality Engineering 2009-09-16 01:06:59 UTC
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