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 168568 - Errors marked on lines, but not on editor tab or project nodes
Summary: Errors marked on lines, but not on editor tab or project nodes
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2009-07-14 17:05 UTC by Jesse Glick
Modified: 2009-11-09 14:04 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (224.64 KB, image/png)
2009-07-14 17:06 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-07-14 17:05:36 UTC
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.
Comment 1 Jesse Glick 2009-07-14 17:06:35 UTC
Created attachment 84733 [details]
Screenshot
Comment 2 Jesse Glick 2009-07-14 17:10:15 UTC
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).
Comment 3 Jesse Glick 2009-07-14 17:15:45 UTC
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!
Comment 4 Jesse Glick 2009-07-14 17:27:43 UTC
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.
Comment 5 Petr Dvorak 2009-07-28 16:59:04 UTC
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?
Comment 6 Jiri Prox 2009-07-28 17:31:44 UTC
yes, I can reproduce it as well. 
Comment 7 Dusan Balek 2009-08-10 11:39:44 UTC
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.
Comment 8 Quality Engineering 2009-08-11 06:01:04 UTC
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).
Comment 9 Jan Lahoda 2009-08-20 10:00:14 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 10 David Strupl 2009-11-09 14:04:57 UTC
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.