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 251000 - IDE does not show error badges in erroneous Java source
Summary: IDE does not show error badges in erroneous Java source
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 8.0.2
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 269116 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-08 01:02 UTC by bht
Modified: 2017-04-05 11:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log files in zip file (413.07 KB, application/zip)
2015-03-08 01:02 UTC, bht
Details
log file with some package and class names edited (227.50 KB, text/plain)
2016-11-13 06:00 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2015-03-08 01:02:42 UTC
Created attachment 152472 [details]
log files in zip file

I started a new session after the latest IDE patch. In a maven project, I refactored a static inner class out of the good then, now erroneous Java class which I then moved into a separate package. Nothing special. The error icon is shown in the projects window but the editor does not have any error badges.

I have always been thinking that there must be a way to clean a project from the IDE perspective not just Maven. Eclipse IDE can do this. I get an error like this once or twice every week, and there is no resolution other than deleting the IDE cache. When after so many years, will the Netbeans team start acknowledging that the IDE is not perfect, and that in such cases there needs to be a cleanup procedure which is not as radical as clearing the cache an re-starting the IDE. 

This entails the downloading of all Maven indexes. Takes an hour in my case.
Comment 1 bht 2015-03-08 01:16:25 UTC
Changed priority from 2 to 3. I could recover by re-starting the IDE.
Comment 2 bht 2016-11-13 06:00:48 UTC
Created attachment 162894 [details]
log file with some package and class names edited

This still happens with version 8.2

When I build a maven project then errors are flagged in the output, but the editor does not highlight them.

Interestingly, the editor tab has an error icon, but the editor window does not contain any red error badges in the right gutter, no other markers, except some SCM highlights, in my case Git.

The problem fixes itself after an IDE re-start.

I did some refactoring such as renaming methods and removing methods, but in a very normal, slow and controlled way.

There are log entries that advise to add the log file to bug 112566

This is definitely hard to reproduce.
Comment 3 Martin Balin 2017-04-05 11:41:43 UTC
*** Bug 269116 has been marked as a duplicate of this bug. ***