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 252549 - Error parsing file doesn't go away after fixing errors
Summary: Error parsing file doesn't go away after fixing errors
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2015-05-22 11:22 UTC by cezariusz
Modified: 2015-05-22 11:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE with the error, while the file status is green (115.32 KB, image/png)
2015-05-22 11:23 UTC, cezariusz
Those errors have been fixed (293 bytes, text/plain)
2015-05-22 11:29 UTC, cezariusz
Maybe this will help (1.35 KB, application/octet-stream)
2015-05-22 11:30 UTC, cezariusz
messages.log (120.98 KB, text/plain)
2015-05-22 11:39 UTC, cezariusz
messages.log after restart (56.05 KB, text/plain)
2015-05-22 11:41 UTC, cezariusz

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-05-22 11:22:53 UTC
Product Version: NetBeans IDE Dev (Build 201505160001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; pl_PL (nb)

When preparing a test case for bug 252548 I managed to get the sticky "Error parsing file" on a small sample project. It occurs very often on our real project, but I couldn't share logs, because the project is classified.

The error doesn't go away after adding a comment or space and saving the file to force recompile. There are no error marks in the editor, and the indicator in the right upper corner is green, saying "No errors". Of course build finishes without errors as well:

BUILD SUCCESSFUL (total time: 2 seconds)
Comment 1 cezariusz 2015-05-22 11:23:29 UTC
Created attachment 153810 [details]
IDE with the error, while the file status is green
Comment 2 cezariusz 2015-05-22 11:29:51 UTC
Created attachment 153811 [details]
Those errors have been fixed
Comment 3 cezariusz 2015-05-22 11:30:30 UTC
Created attachment 153812 [details]
Maybe this will help
Comment 4 cezariusz 2015-05-22 11:36:08 UTC
More information about the file history:
1. I have created a JUnit test case file using Tools | Create/Update Tests
2. The file had some errors (see attachment 153811 [details]) due to a bug 252173.
3. I have fixed the error adding an import for assertEquals and deleting the line with "fail".
4. Saved. Errors went away, but the parsing error was still there.
Comment 5 cezariusz 2015-05-22 11:39:42 UTC
Created attachment 153813 [details]
Comment 6 cezariusz 2015-05-22 11:41:27 UTC
Created attachment 153814 [details]
messages.log after restart

After the IDE restart the error was still there, but only for about a second or two, and it quickly disappeared.