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.
Summary: | Workspace refreshes and builds any time Java file is changed | ||
---|---|---|---|
Product: | java | Reporter: | wobster <wobster> |
Component: | Source | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | martin_adamek, tpavek, tzezula |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Thread dump while IDE was "Refreshing Workspace"
Log with -J-Dorg.netbeans.modules.java.source.usages.RepositoryUpdater.level=0 Log with -J-Dorg.netbeans.modules.java.source.usages.RepositoryUpdater.level=0 |
Description
wobster
2008-09-17 03:25:16 UTC
Created attachment 69999 [details]
Thread dump while IDE was "Refreshing Workspace"
Created attachment 70000 [details]
Log with -J-Dorg.netbeans.modules.java.source.usages.RepositoryUpdater.level=0
Created attachment 70001 [details]
Log with -J-Dorg.netbeans.modules.java.source.usages.RepositoryUpdater.level=0
Can you please provide more information about how many java and groovy classes you have and how long the refresh takes? From the log, I see the following problem: -the user edits the file, modifies a method/field/class signature, the file is saved -the file is compiled, and all the "dependent" files are recompiled - this is correct and is needed to show correct error badges (among other things). -but, as a side effect, all virtual files are recompiled - which is wrong, as it is useless (IMO), and slow See RepositoryUpdater.compileFileFromRoots, local variable virtualFiles. As a safest fix, I think that computation and recompilation of virtual files should be disabled when called from RU.recompile. Caused by the groovy files which are rebuilt after save, should be easy to fix. Thanks for report. Integrated into 'main-golden', will be available in build *200809180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d367be04b2e4 User: Tomas Zezula <tzezula@netbeans.org> Log: #147438:Workspace refreshes and builds any time Java file is changed |