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 242791 - Java Editor does not highlight compilation error
Summary: Java Editor does not highlight compilation error
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-11 11:31 UTC by heapifyman
Modified: 2014-07-07 11:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (361.48 KB, text/plain)
2014-03-11 11:32 UTC, heapifyman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description heapifyman 2014-03-11 11:31:52 UTC
Java Editor does not highlight compilation error, although file is marked as having errors in the Projects view

Product Version = NetBeans IDE 8.0 RC1 (Build 201402242200)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 heapifyman 2014-03-11 11:32:04 UTC
Created attachment 145943 [details]
IDE log
Comment 2 heapifyman 2014-04-08 13:55:38 UTC
Is anything happening here?
It's been a month and this bug is really annoying.

It basically renders the whole IDE useless if a Java source file has errors but there is no quick way to identify where the error is.
Comment 3 Jiri Prox 2014-04-14 21:21:31 UTC
Please try upgrading to 8.0 fcs, there were addressed such issues in the final release
Comment 4 heapifyman 2014-04-14 21:34:03 UTC
(In reply to Jiri Prox from comment #3)
> Please try upgrading to 8.0 fcs, there were addressed such issues in the
> final release

I have. Problem still occurs though I cannot precisely tell you how to reproduce it.
Seems to happen when editing a lot of files in a big project.
If it happens again, I will try and upload the log here.
Comment 5 Dusan Balek 2014-04-18 08:42:43 UTC
Isn't background indexing in progress whenever you notice the file errors are not marked in editor? FYI, the task that draw error marks in editor waits for background scan to be finished.
Comment 6 heapifyman 2014-04-24 14:22:01 UTC
(In reply to Dusan Balek from comment #5)
> Isn't background indexing in progress whenever you notice the file errors
> are not marked in editor? FYI, the task that draw error marks in editor
> waits for background scan to be finished.

I'm not sure if some indexing is running. At least I didn't see any progress bar or other indicator that there is a Netbeans process running.

Anyway, the status I described did not change for minutes. Actually, I had to restart Netbeans to get Java editor working again.

So either the background scan is way to slow or it was not the problem.
Comment 7 jiai 2014-05-01 08:35:42 UTC
Same situation here. Eventually after the yesterday's update.
Comment 8 bgraves 2014-07-02 07:27:09 UTC
Same problem here. Very annoying.
Comment 9 Dusan Balek 2014-07-07 11:01:51 UTC
Unfortunately, it is hard to do anything without a reproducible test case. Next time you observe the problem, could you please capture a thread dump and profiler snapshot (invoking the 'Profile the IDE' action and waiting for a while) and attach it to the issue? Thanks.