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 183364 - ProfilerModule.java persistently marked as erroneous
Summary: ProfilerModule.java persistently marked as erroneous
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2010-04-01 15:13 UTC by Jesse Glick
Modified: 2010-04-02 16:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-04-01 15:13:49 UTC
100331. I have a number of nb.org modules open incl. profiler. There is an error badge on profiler coming from ProfilerModule.java, which is shown in the Projects tab and on the editor tab when I open it. But there is no error shown in the text of ProfilerModule.java; it has a yellow box only. Incorrect error badge recomputation does not fix it:

INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 181 source roots took: 142590 ms (New or modified files: 1289, Deleted files: 0)
operation
WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: /space/src/nb/main/nb-javac/src/share/classes
operation
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Incorrect error badges detected, file=/space/src/nb/main/profiler/src/org/netbeans/modules/profiler/ProfilerModule.java.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Going to recompute root=/space/src/nb/main/profiler/src, files in error=[file:/space/src/nb/main/profiler/src/org/netbeans/modules/profiler/ProfilerModule.java].
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Incorrect error badges detected, file=/space/src/nb/main/profiler/src/org/netbeans/modules/profiler/ProfilerModule.java.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Going to recompute root=/space/src/nb/main/profiler/src, files in error=[file:/space/src/nb/main/profiler/src/org/netbeans/modules/profiler/ProfilerModule.java].
operation
operation
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Incorrect error badges detected, file=/space/src/nb/main/profiler/src/org/netbeans/modules/profiler/ProfilerModule.java.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Going to recompute root=/space/src/nb/main/profiler/src, files in error=[file:/space/src/nb/main/profiler/src/org/netbeans/modules/profiler/ProfilerModule.java].
Comment 1 Jan Lahoda 2010-04-01 19:28:10 UTC
Could you please take a look into Tasklist (you may need to enable "Compiler Errors"), it should contain the error (alternatively, the error is in the var/cache/index/s<something>/errors). Is the error something like that a file cannot be created, because it already was created (from annotation processing)? If yes, this should fix that:
http://hg.netbeans.org/main-silver?cmd=changeset;node=11b9fa6fd1c1
(I opened profiler and did not see the error, so it probably was actually fixed by the above).

Note that the file with errors did not need to go through AP - because the processor does not bind the error to an element, it sometimes gets attached to "random" file. We will probably need to do something about this too.
Comment 2 Jesse Glick 2010-04-02 16:14:47 UTC
Well today (same build) there is no error badge on profiler, so who knows.