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 163530 - Error badges severely inconsistant
Summary: Error badges severely inconsistant
Status: RESOLVED DUPLICATE of bug 165413
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2009-04-23 21:25 UTC by mjreged
Modified: 2011-07-28 13:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My workspace (103.92 KB, image/png)
2009-04-23 21:27 UTC, mjreged
Details
It's not hard to cause error badges go out of synch, i am sure netbeans developes have come across it. (98.46 KB, image/png)
2009-05-01 18:25 UTC, mjreged
Details
Latest NB6.7 dev shows error bages inconsistent (121.01 KB, image/png)
2009-05-21 15:57 UTC, mjreged
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjreged 2009-04-23 21:25:44 UTC
It's had to work on projects when the IDE is reporting false positives on compilation error even when Full compilation is 
completed successfully.  We have 5 developers who use the latest Stable 6.5.1 version of netbeans, all developers have experienced this problem and it's impacting their work and concentration.  I have attached a picture of a typical occurrence in Netbeans.
Comment 1 mjreged 2009-04-23 21:27:21 UTC
Created attachment 80795 [details]
My workspace
Comment 2 Dusan Balek 2009-04-24 09:05:36 UTC
Is the issue reproducible? I mean, if you clean IDE caches (/var/cache/index subdirectory of your NB userdir) and
restart the IDE, are there any files marked as erroneous? If so, what particular errors are reported, is there missing
something?
Comment 3 mjreged 2009-04-24 14:08:34 UTC
You must be joking right.   Is that an solution to a constantly re-occurring symptom "clean your cache".  

If i did not know any better this is an IDE right. Just like eclipse, IDEA, JDeveloper, etc... 

Just trying to let Netbeans community know that it is a severe blow to your IDE reputation among Eclipse users, when
they see Netbeans can't track compilation errors correctly and it gets out of sync ofter with error badges. And guess
what their point of entry to Netbeans is maven project because it allows them to maintain a project in eclipse while
they try netbeans and see if it's worth switching. So


The common use case is as follows: 
User develops web application in eclipse.
User get's tired of it, I come over and say hey i provided pom definitions to all our projects, so you can try
developing in Netbeans.
User Takes my advice, downloads netbeans, turn on ( clearcase, svn, maven web application modules,tomcat )
Opens projects, and compiles.
Navigates and works on the classes for a while, updates and notices Errors.
User compiles and the compiler notifies of compilation successful.
The IDE still reports error.
The user Selects all projects clicks on Reload Projects. ( errors still there )
User closes and opens the projects ( errors still there )
User closes the IDE and restarts ( error still there )
User comes around and asks me why is Netbeans showing errors. 
I apologize for Netbeans and tell them to clear cache every time it happens.
Process repeats 2 or 3 times a week.

WOW. This blows my mind that this IDE can't handle such fundamental functionality. Other shortcomings are reasonable but
not this.  I would not mind if it got out of sync once in a blue moon but for us it happens quite frequently.





Comment 4 mjreged 2009-04-24 14:18:49 UTC
Please understand why i am not very cheerful about this.
I started work in a company that is mainly IBM & eclipse.  I am chipping away at making the development more independent
and neutral toward IDE and Servers. So that we can have a greater chance to switch between solutions. With the support
of Maven, i was able to switch the build process and put us on the road to achieving my goals. That opened opportunity
for netbeans to play a role in this shop. Out of 30 developers using eclipse, i have introduces netbeans to 5 developers
that are doing work in netbeans.  

I can't continue if such fundamental feature as compilation errors is not locked down and working flawlessly.

But i got the ball rolling, i think that within months most of the developers will have a netbeans installed on their
machines.

Comment 5 Jiri Prox 2009-04-27 10:32:19 UTC
Hi mjreged
I understand you pain. The clearing caches is only workaround for this problem, definitely not a final solution.
Unfortunately the wrong error badges are very complex problem, which can be caused by several reason. We are trying to
solve all reports of this problem, but in most cases, we need more info, to find out where is the root of the problem
hidden. 

The best help for getting the problem fixed fast is to provide exact steps to reproduce - from the fresh userdir
(avoiding earlier metadata corruption) to the first occurrence of the bug. Unfortunately this is almost impossible to
provide. So we must find the problem from various logs and symptoms. Can you please answer the questions from dbalek? It
will help us to solve this problem.

Thanks
Comment 6 mjreged 2009-05-01 14:50:02 UTC
Are you guys not planning to address the issue in NB6.5 as part of bug fix updates?

I Tried NB6.7 it has the same problem, but it even has other issues that i think they will not address in time.  Like
maven projects start up in about 20 min because it scans project paths that long and does it every time i restart IDE.  

While error badges is more fundamental problem. A problem that NB6.5 should not suffer from and should be fixed in the
stable release.
Comment 7 mjreged 2009-05-01 18:25:27 UTC
Created attachment 81385 [details]
It's not hard to cause error badges go out of synch, i am sure netbeans developes have come across it.
Comment 8 mjreged 2009-05-21 15:57:30 UTC
Created attachment 82563 [details]
Latest NB6.7 dev shows error bages inconsistent
Comment 9 Jiri Prox 2009-05-21 16:00:36 UTC
This was fixed today, please try newer build

*** This issue has been marked as a duplicate of 165413 ***
Comment 10 pradeepg26 2011-07-28 13:45:50 UTC
This bug has been duplicated on NB6.9 as well. Please give us update on the status.