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.
Created attachment 94094 [details] Screenshot Product Version: NetBeans IDE Dev (Build 201002110200) Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) To reproduce: - create WeatherFXApplication sample - open Weather.fx in editor - invoke Format popup menu command on source On Sun Ultra 20 (2.4 GHz Dual Core Opteron, 3GB RAM) it takes 1 min 8 sec to complete the operation. While it's in progress, IDE doesn't respond. See attached screenshot.
*** Bug 177284 has been marked as a duplicate of this bug. ***
IDE Screenshot https://netbeans.org/bugzilla/attachment.cgi?id=91414
I use the NetBeans-JavaFX-Soma: #157 and the IDE hangs in this case.
Created attachment 94281 [details] Thread Dump
The problem is in our slow lexer which is been invoked after every small modification of document. It is fixed for now but there are 2 related issues left: 1. http://netbeans.org/bugzilla/show_bug.cgi?id=181436 If user has assertions enabled then he can experience assertion error during reformatting. Should be fixed in netbeans editor soon. 2. https://netbeans.org/bugzilla/show_bug.cgi?id=150197 There is still problem with performance if user invoke undo after big reformat. Should be fixed soon as well. http://hg.netbeans.org/javafx/rev/d714068aeb3f
verified in NetBeans-JavaFX-Soma: #182