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: | Editing a .js file, every character I type NetBeans make a "pause" with busy cursor to check autocomplete... | ||
---|---|---|---|
Product: | javascript | Reporter: | ecerichter |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | issues, mmirilovic, pjiricka, vriha |
Priority: | P1 | Keywords: | PERFORMANCE |
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE log
video of the issue in action! profiler snapshot JavaScript editor jar with the possible patch Navigator seems to be working well. But title is weird |
Description
ecerichter
2013-02-07 21:42:38 UTC
Created attachment 131121 [details]
IDE log
Created attachment 131122 [details]
video of the issue in action!
Repeteable in RC2. I suspect this issue is related to issue 225837. Regards, Edson Could you please attach the ide snapshot? Just for a few seconds. How to do it is described here: http://wiki.netbeans.org/FaqProfileMeNow Thanks Could you also try, when you close the navigator?. Does it has the same symptoms with closed navigator? Thanks Created attachment 131127 [details]
profiler snapshot
(In reply to comment #5) > Could you also try, when you close the navigator?. Does it has the same > symptoms with closed navigator? Thanks Seems you are right: having navigator closed, doesn't show the lag time. Also, I've noticed that navigator title blink with "null - Navigator", like if everytime the navigator would be trying to parse the incomplete javascript I'm working on. Under investigation as potential NB 7.3 stopper .... Petre, do you think that fix for issue 222130 could help with that? I do see the busy cursor, but it has no visible affect on typing for me (JS file with ~3k lines) Vlado, I'm sure that it should help:). I need to look through the snapshot. To reporter: Looking through the ide snapshot, it really caused by refreshing the navigator. When the navigator is refreshing, then some types are resolved through the index. Which means that is touch the disk. From the napshot it looks like you are working on a network fs, is it true? Created attachment 131136 [details]
JavaScript editor jar with the possible patch
@reporter: I'm attaching a jar, which is newer JS editor with the fix for issue #222130 . Could you please replace the original jar in your RC1 build. It's located in ${installdir}/ide/modules and try whether it helps, when the navigator is open. Thanks very much.
(In reply to comment #11) > To reporter: Looking through the ide snapshot, it really caused by refreshing > the navigator. When the navigator is refreshing, then some types are resolved > through the index. Which means that is touch the disk. From the napshot it > looks like you are working on a network fs, is it true? No. It is possible that anti-virus has some activity. But I do use SATA II 7200 rpm Seagate disks in a brand new machine. (In reply to comment #12) > Created attachment 131136 [details] > JavaScript editor jar with the possible patch > > @reporter: I'm attaching a jar, which is newer JS editor with the fix for issue > #222130 . Could you please replace the original jar in your RC1 build. It's > located in ${installdir}/ide/modules and try whether it helps, when the > navigator is open. Thanks very much. I'll give a try and get back ASAP. Thanks, Edson (In reply to comment #14) > (In reply to comment #12) > > Created attachment 131136 [details] > > JavaScript editor jar with the possible patch > > > > @reporter: I'm attaching a jar, which is newer JS editor with the fix for issue > > #222130 . Could you please replace the original jar in your RC1 build. It's > > located in ${installdir}/ide/modules and try whether it helps, when the > > navigator is open. Thanks very much. > > I'll give a try and get back ASAP. > > Thanks, > > Edson Applying the patch resulted in autocomplete no working any more, and the following stack trace: java.lang.NoSuchMethodError: org.netbeans.modules.javascript2.editor.classpath.ClassPathProviderImpl.getJsStubs()Ljava/util/List; at org.netbeans.modules.javascript2.editor.model.impl.JsElementImpl.isInternalFile(JsElementImpl.java:196) at org.netbeans.modules.javascript2.editor.model.impl.JsElementImpl.isPlatform(JsElementImpl.java:190) at org.netbeans.modules.javascript2.editor.JsCompletionItem.getRhsHtml(JsCompletionItem.java:115) at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.getRightHtmlText(GsfCompletionItem.java:199) at org.netbeans.modules.csl.editor.completion.GsfCompletionItem.getPreferredWidth(GsfCompletionItem.java:516) at org.netbeans.modules.editor.completion.CompletionJList$RenderComponent.getPreferredSize(CompletionJList.java:382) at org.netbeans.modules.editor.completion.CompletionJList.setData(CompletionJList.java:167) at org.netbeans.modules.editor.completion.CompletionScrollPane.setData(CompletionScrollPane.java:127) at org.netbeans.modules.editor.completion.CompletionLayout$CompletionPopup.show(CompletionLayout.java:384) at org.netbeans.modules.editor.completion.CompletionLayout.showCompletion(CompletionLayout.java:143) at org.netbeans.modules.editor.completion.CompletionImpl$7.run(CompletionImpl.java:1016) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.awt.EventQueue$3.run(EventQueue.java:686) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:697) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Created attachment 131145 [details]
Navigator seems to be working well. But title is weird
Ok, applying patch on RC2 worked.
Nevertheless, navigator window says "null - Navigator", not sure if it is the same issue or if I should open a new one.
See attached screenshot for reference.
(In reply to comment #16) > Created attachment 131145 [details] > Navigator seems to be working well. But title is weird > > Ok, applying patch on RC2 worked. > Nevertheless, navigator window says "null - Navigator", not sure if it is the > same issue or if I should open a new one. > See attached screenshot for reference. I'll work in RC2 only by today, and keep the patch in place. During next 8 hours I'll be working with NB, and be able to answer if the fix is effectively as I hope. Thanks, Edson The "null" is reported as issue 216639. The null problem was here before as well. It's infrastructure problem and different issue as Vlada mentioned. Anyway thanks for your cooperation. I have transplanted fix for issue #222130 into releases73 branch that should fix this. http://hg.netbeans.org/releases/rev/98d8757b80ec verified in 7.3 by trying issue 222130 Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b02 System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb) |