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

Summary: Cache not cleaned on Clean Project Action
Product: java Reporter: bht <bht>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

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.