Community
Participate
Working Groups
Some of our developers are experiencing very long waits when they save a java source file. Instead of compiling that file, eclipse seems to scrub the output folder and then compile all classes that are required to compile the saved file. This isn't happenning to all users, but once it does start happenning, we haven't found a way of stopping it (although some people have de-selected the "Perform Build automatically on resource modification"). I appreciate that this may be difficult to look at due to it's random nature, but hopefully this won't be the first report. I have looked for other similar reports but failed, apart from #10628, which briefly mentions a similar situation : "Also my colleagues complain that the compilation is slow and that "scrubbing output folder" sometimes happens on normal file save (that should only trigger compilation)."
The output folder is updated during compilation. When a full build occurs (for some reason it wasn't able to perform incrementally), then it will clean the output folder. In 2.1, you can turn off the output folder cleaning (See preferences>Java>compiler>build path>scrub output folders on full build In order to understand why full builds occur when only incremental builds should, please provide steps to reproduce. Alternatively, you can enable the Java builder trace and see what occurs. In order to enable the tracing, launch Eclipse in debug mode using -debug and java.exe (to open console), with following options specified in .options file next to eclipse.exe: org.eclipse.jdt.core/debug=true org.eclipse.jdt.core/debug/builder=true
Side-question: which build are you using ? We changed the message from "scrubbing..." to "cleaning..." quite a while ago. I would suggest you use a recent build.
Please reopen once more information is available
Closing since no activity in past 3 months.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.