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 254638 - IDE cannot find classes in editor
Summary: IDE cannot find classes in editor
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
Depends on:
Reported: 2015-08-24 08:52 UTC by ymajoros
Modified: 2016-11-10 10:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description ymajoros 2015-08-24 08:52:07 UTC
This could be a duplicate, but every other bug I found seem to be somewhat different.

Every once in a while, Netbeans classes cache seem to get corrupted. I've seen this with different projects and different Netbeans versions.

Today, I updated our 20 modules maven project (updated all POMs externally to a new version, that is).

Everything compiles, deploys and runs fine. However, Netbeans shows a lot of red badges, errors on "missing" classes.

Here are some observations:

- "Source" -> "Scan for external changes" doesn't help.
- Missing classes cannot be found with "Go to type" (this is at least consistent).
- Those missing classes .class actually exist on disk.
- Missing classes' projects are open in Netbeans, and source can be opened from project tree.
- Editing and saving a "missing" class source triggers compilation and background scanning, and actually solves the problem for this class (not for its whole project, just one class at a time).
- Just restarting Netbeans doesn't solve the problem.
- Manually deleting the cache directory and restarting Netbeans makes the problem go away.

I'm on a dev version, Build 201508030002, but this is a quite common problem.