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 192479 - [70cat] Annotation highlighting options have no effect
Summary: [70cat] Annotation highlighting options have no effect
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2010-11-25 16:42 UTC by matthies
Modified: 2016-07-18 20:47 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description matthies 2010-11-25 16:42:36 UTC
Some of the settings under Options -> Fonts & Colors -> Annotations don't appear to have any effect, for example for "Fixable Hint" or "Fixable Warning". There also seems to be some overlap with the syntax categories "Warning" and "Error" under "Syntax".

"Syntax" should probably be restricted to highlighting based on syntactic elements of the respective language, and stuff like error/warning highlighting should be placed under "Annotations" or "Highlighting". Otherwise it's not really clear what the delimitation is between syntax categories and highlighting and annotation categories. Yes, syntax category options can be language-dependent, but actually the same is true for annotations and "Highlighting".

For "Highlighting" and "Annotations", it's also not clear which settings "Inherited" inherits from.
Comment 1 Jan Lahoda 2010-11-25 22:22:10 UTC
The implementation details show up a bit too much in this case. Changing the effect of the annotation type will work (in case the specific annotation type is used, which may not always be clear), but is almost surely not what the user wants (the annotations cannot show several separate highlights on one line, so the error underlines in the editor are not really annotations, its simply painted highlighting - the annotations are used only to show the icon in the left gutter). So I propose to try:
-add error/warning to Highlighting
-remove warning from syntax, keep error as it was before (for lexical errors)
-hide the editor hints' annotations from the Annotations tab - they are not usefull anyway (although I am not sure how much difficult will this be)

Comment 2 matthies 2010-11-26 00:39:24 UTC
What would be the difference between lexical errors (under "Syntax") and errors under "Highlighting"?
Otherwise your proposal sounds good to me.
Comment 3 Martin Balin 2016-07-07 07:30:34 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 4 matthies 2016-07-18 20:47:24 UTC
Still reproducible in current dev build.