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 222771 - ScanInProgress incorrectly set for module suite when not scanning
Summary: ScanInProgress incorrectly set for module suite when not scanning
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: PC All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 16:02 UTC by Petr Cyhelsky
Modified: 2012-12-13 02:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-11-26 16:02:24 UTC
Steps: Start NB with clear userdir and cachedir -> create new paintapp -> profile the suite -> click on customize profiling roots -> cancel profiling -> close the submodules -> restart ide -> profile the suite -> click on customize profiling roots -> never ending progress dialogue
Comment 1 Jiri Sedlacek 2012-12-03 09:52:01 UTC
Workaround - run build before invoking the Profile action or invoke Profile action and close the Profile Project dialog for the first time without selecting the profiling roots. Only needed once after IDE startup, the subsequent invocations work fine.
Comment 2 Jiri Sedlacek 2012-12-03 10:00:47 UTC
Seems to be caused by org.netbeans.api.java.source.SourceUtils.isScanInProgress() returning 'true' after IDE startup and not changing to 'false' until first build. The 'JavaSource.runWhenScanFinished(...).get()' invoked by the profiler is thus blocked and never finishes.

General steps to reproduce:

  1/ Create Paint Application, let the suite be the only project open
  2/ Restart the IDE
  3/ a) Invoke 'SourceUtils.isScanInProgress()' - returns true
     b) Invoke 'JavaSource.runWhenScanFinished(...).get()' - never finishes

Updating bugreport Summary: "Selection never finishes in root method selector" -> "ScanInProgress incorrectly set for module suite when not scanning".
Comment 3 Ondrej Vrabec 2012-12-03 15:16:28 UTC
Are you sure it belongs to apisupport/project? Both java classes are in java.source. Please reassign back if you're sure it belongs here. Thanks.
Comment 4 Jan Lahoda 2012-12-10 09:50:36 UTC
Tomas, could you please take a look? Thanks.
Comment 5 Tomas Zezula 2012-12-11 13:37:55 UTC
Fixed jet-main b10a1aed5936
Comment 6 Quality Engineering 2012-12-13 02:38:28 UTC
Integrated into 'main-golden', will be available in build *201212130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b10a1aed5936
User: Tomas Zezula <tzezula@netbeans.org>
Log: #222771:ScanInProgress incorrectly set for module suite when not scanning