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.
Open any source or header file, add any invalid include there. Save file. In source editor this include will be underlined by red-wave line with hint "Can not find include file ...". Close and open this file in source editor - the error will not be underlined... Double switch of "Code Assistance" helps to mark this error again
Created attachment 52989 [details] patch to code model utils
Created attachment 52990 [details] patch for highliting
Created attachment 53031 [details] patch to release60
fixed in trunk (see last patch only) CVS log: Checking in HighlightProvider.java; /shared/data/ccvs/repository/cnd/highlight/src/org/netbeans/modules/cnd/highlight/error/HighlightProvider.java,v <-- HighlightProvider.java new revision: 1.7; previous revision: 1.6 done
I reviewed the fix. It's correct and quite safe.
Just a clarification (since there were 2 different fixes attached): the above concerns the most recent fix (http://www.netbeans.org/nonav/issues/showattachment.cgi/53031/121766.patch). It is identical to the one that is committed into the trunk.
Following HR process ...
Comments to the patch: While going through the list of components (the list is returned by EditorRegistry.componentList()), we should check whether the component is still visible (isShowing() returns true). There were no such check - this led to the error. The fix adds this check.
verified in trunk build 20071116
Committed into release60: Checking in HighlightProvider.java; /shared/data/ccvs/repository/cnd/highlight/src/org/netbeans/modules/cnd/highlight/error/HighlightProvider.java,v <-- HighlightProvider.java new revision: 1.6.2.1; previous revision: 1.6 done
verified in RC2 candidate build