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 223101 - Cache not cleaned on Clean Project Action
Summary: Cache not cleaned on Clean Project Action
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Assignee: Tomas Zezula
Depends on:
Reported: 2012-12-01 17:26 UTC by bht
Modified: 2012-12-03 15:34 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description bht 2012-12-01 17:26:08 UTC
In case of cache corruption of a project, Project Clean action does not fix it.

This hapens with issues like bug 199293 which I will have to re-open because it is not yet fully fixed.

We are advised to close the IDE, delete var/cache/index and re-start.

Instead of deleting entire var/cache/index, we could locate project specific subdirectories by reading the segments file and delete only project specific files.

All this is too technical and disruptive, not in line with NetBean's ease of use.

The IDE should be able to clean a project fully while running, without having to re-start.
Comment 1 Milos Kleint 2012-12-03 15:34:09 UTC
Project Clean is just an action mappings to execute the associated build. Be it Ant or Maven or anything else. There was never a contract that a clean should do something on top of that, especially rescanning (which means recompiling) inside the IDE afterwards. Therefore it cannot be a bug -> enhancement. 

*if* there is to be an action to invalidate language infrastructure caches, it's certainly not to be associated with project clean.