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 246485

Summary: Do not disable Compile action
Product: java Reporter: ulfzibis <ulfzibis>
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal CC: jlahoda, tzezula
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 246439    

Description ulfzibis 2014-08-15 22:29:11 UTC
[ JDK VERSION : 1.7.0_55 ]

From time to time I have troubles with error badges.
E.g., if there is an error badge on a file, but there is no red marker visible
in the editor to determine it's location. In such a case I have to invoke
Compile to find it, which is not possible with disabled Compile action.
Comment 1 Tomas Zezula 2014-08-20 13:43:39 UTC
Unfortunately it's not easy.
When Compile On Save is enabled it copies the classes from caches into the build/classes before actual run. So the compiled file will be overwritten by CoS if it was modified from last run.
As far as I remember there was long discussion when CoS was introduces which actions should be enabled and the conclusion was that only "Clean & Build" is save as it deletes everything and compiles everything.

The enabling has to be done in action provider (java/project) but I don't believe it's save to do it.
Comment 2 Tomas Zezula 2014-08-20 13:45:10 UTC
Added Honza L. to cc as hw knows most about CoS project actions integration.