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 22374

Summary: Parser errors could be combined (somehow) with compiler error messages
Product: projects Reporter: Svata Dedic <sdedic>
Component: AntAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker CC: issues
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 45428    

Description Svata Dedic 2002-04-12 15:45:55 UTC
If there are errors in the source, catched by the 
background parser and annotated in the gutter and I 
compile the text, the annotations double: obviously the 
compiler will report at the same lines as the parser did. 
I think that - in this case - the compiler's annotation 
could just override the parser's one.
Comment 1 Marek Grummich 2002-07-22 10:49:55 UTC
Set target milestone to TBD
Comment 2 Jan Becicka 2005-10-12 15:58:14 UTC
*** Issue 51199 has been marked as a duplicate of this issue. ***
Comment 3 Jesse Glick 2005-10-12 16:31:55 UTC
May require coordination with the ant module.
Comment 4 Jesse Glick 2006-11-25 01:46:39 UTC
Can be fixed in the Ant module alone, as it turns out.
Comment 5 Jesse Glick 2006-11-25 01:49:29 UTC
Suppressing Ant's error annotation in case the line in question already has an
annotation, which will in most cases be an error annotation from the background
parser. The IDE's parser annotations for compiler errors are generally
preferable: they may have multiline tooltips, they disappear reliably when the
source is fixed, etc.

Checking in Hyperlink.java;
/shared/data/ccvs/repository/ant/src/org/apache/tools/ant/module/run/Hyperlink.java,v
 <--  Hyperlink.java
new revision: 1.11; previous revision: 1.10
done
Comment 6 Jesse Glick 2006-11-27 16:48:38 UTC
jlahoda warns that this technique will not work if anyone begins calling
NbDocument.addAnnotation directly, rather than going through DocumentLine.
Comment 7 Jesse Glick 2006-11-28 16:21:28 UTC
Branch was created retroactively.