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.
I just did a 'hg qpush' to work on a patch changing NbKeymap, then went to the IDE. I then opened the corresponding test case. As you can see from the screenshot, the compiler knows there are errors in the file, yet the editor tab is not marked with an error badge, and neither are any of the nodes in the Projects tab.
Created attachment 84733 [details] Screenshot
Note that the problem is not corrected by restarting the IDE. The errors also do not appear in the Tasks window (though hundreds of warnings do appear).
After opening a couple of other classes in the same folder that also had compilation errors, one displayed an error badge on the editor tab (and also the data node); the other did not. There are no warnings in my log from parsing, just INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 4,392 ms INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots took: 0 ms INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 0 ms INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 26 binary roots took: 334 ms INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 45 source roots took: 2254 ms Surely the presence of errors in a file without a badge, or vice-versa, should trigger some kind of automatic rescan or at least diagnostic warning in the log file!
If I turn off Enable Java Tasklist in Options, then turn it back on (Enable Dependencies and Enable Error Badges included), the IDE does some scanning and then the error badges are corrected.
I had same problem (except for the turning off/on the Task List didn't help me). The error badges are never refreshed in the projects view for me, even not after the editor recognizes errors. Try following to reproduce: 1. Download a zip with OpenJDK sources from: http://download.java.net/openjdk/jdk7/ 2. Extract the zip to some folder 3. Folder "<openjdk>/jdk/make/netbeans/" contains the NB projects - open all of them 4. Wait some 5 minutes until the scanning finishes -> there are some badges in the projects view 5. Open some file that is not badged -> eventually (quite soon), you will find a file that contains errors and still is not badged in the Projects view Jirka, you were also playing with OpenJDK sources, can you reproduce this problem?
yes, I can reproduce it as well.
Incorrect error badges detection improved. http://hg.netbeans.org/jet-main/rev/9e3e9012ccaa Could you please try to reproduce the issue in the latest dev build? Thanks.
Integrated into 'main-golden', will be available in build *200908110201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9e3e9012ccaa User: Dusan Balek <dbalek@netbeans.org> Log: Incerrect error badges detection imporved (see issue #168568).
Reassigning all moonko's java/source bugs to myself.
Without the reaction to Dusan's comment I am closing as worksforme. If this is to be reopened please supply steps to reproduce in some decently recent build.