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 152044 [details] snapshot I have a php project based on wordpress, so a lot of files. I have a javascript file with some validation and some functions. When I use the code templates for javascript like for "if" or "cl" (console.log) and hit tab, sometimes works, sometimes or often the IDE freezes after hitting tab. I tried to reproduce it with hitting ctrl + space, I got the "please wait..." hint and than I typed if -> tab and the whole ide freezes. I could created a snapshop for console.log. It tooked seconds, and than it worked again. And often, for example when I try it with "if" I have to kill the netbeans process. See my attachments for more information. Hope that helps. Cheers Chris
Created attachment 152045 [details] ui gestures
Created attachment 152046 [details] messages log
waiting for lock in org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished() org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask() ?
Javascript vs Javascript: Javascipt + CSL calls PM.parseWhenScanFinished() in EDT which does parsing and needs to acquire parser lock, which is held by javascript code completion for 14sec (Innactive RequestProcessor Thread: Was Folder Recognizer...). The parsing operation should not be called in EDT.
Probably duplicate of issue #248260. Need more investigation to confirm this.
The PM.parseWhenScanFinished() is called from GsfCodeTemplateProcessor when a template is inserted to the source. The code completion can be computed for longer time when is looking fro all symbols from the project (Double click CTRL+SPACE) and the project is big. So there are two problems. The CSL should not call PM.parseWhenScanFinished() in EDT and should be fixed in CSL. The second problem is that the CSL code completion is not cancelable. We need to change the CSL CodeCompletionHandler to be able cancel the computation. Probably we can reuse the CancelSupport from parsing api. I'm reassigning this issue to CSL to solve the problem with calling PM.parseWhenScanFinished() in EDT and the second problem we will solve separately.
CSL is not calling pm.parseWhenScanFinished in edt http://hg.netbeans.org/jet-main/rev/f535bace66d1
Integrated into 'main-silver', will be available in build *201509100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f535bace66d1 User: Milutin Kristofic <mkristofic@netbeans.org> Log: #250478 - Netbeans freezes after using javascript code templates