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 236910

Summary: running javaFx project before project scanning finishes
Product: javafx Reporter: ytn01
Component: ProjectAssignee: Roman Svitanic <rsvitanic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: State of project run after scanning completes

Description ytn01 2013-10-09 04:33:44 UTC
Run commands that were triggered before a JavaFX project completes scanning don't complete.

Steps to reproduce:
Open one of the sample JavaFX projects (preferably a complicated one)
Exit the IDE, and relaunch it,... IDE will scan projects opened from last session,
Before, scanning finishes, select the previous JavaFX project and hit run button
A dialog that suppose to display list of main classes in the project will be displayed, (with information indicating scanning is still in progress)
At this point, neither list of main classes gets displayed nor project runs automatically when scanning completes.

I believe dialog should be populated with list of main classes, and maybe project run proceeds with the main class thats is set for running from previous sessions.

Product Version = NetBeans IDE 7.4 (Build 201310012201)
Operating System = Mac OS X version 10.8.5 running on x86_64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Comment 1 ytn01 2013-10-09 04:34:57 UTC
Created attachment 140920 [details]
State of project run after scanning completes
Comment 2 Lou Dasaro 2013-10-09 04:47:05 UTC
My preferred "fix" would be to lockout clean/build/run/debug, and others until background scanning is done. Or some permutation of the foregoing.

The anomaly exists also on my machine:

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 3 Roman Svitanic 2013-10-09 09:36:56 UTC
Fixed in jet-main:
http://hg.netbeans.org/jet-main/rev/94930ec5fe90

Dialog is now refreshed and filled with suitable application classes when scanning is complete.
Comment 4 Quality Engineering 2013-10-12 04:00:32 UTC
Integrated into 'main-silver', will be available in build *201310120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/94930ec5fe90
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #236910: running javaFx project before project scanning finishes - fixed
Comment 5 Tomas Zezula 2013-12-01 10:27:39 UTC
The patch does not work. With automated tests the fix fails in ~ 1:10 ratio.
It has the same race as before and also high performance impact.
Reopening.
Comment 6 Tomas Zezula 2013-12-01 10:29:11 UTC
Roll back dc7bac670f65.
Comment 7 Tomas Zezula 2013-12-01 17:38:38 UTC
Fixed jet-main 95d36d354e99