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: | Code completion window does not update completions acc. to typed tex | ||
---|---|---|---|
Product: | editor | Reporter: | Jesse Glick <jglick> |
Component: | Completion & Templates | Assignee: | Martin Roskanin <mroskanin> |
Status: | CLOSED FIXED | ||
Severity: | blocker | Keywords: | REGRESSION |
Priority: | P2 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jesse Glick
2004-09-15 21:07:20 UTC
*** Issue 49116 has been marked as a duplicate of this issue. *** I've tested last build of beta2 and the regression does not seem to occur there. The caret and document listeners that the CC attaches are not fired properly. I've searched through the commits made on the editor side but there does not seem to be anything suspicious. We will continue searching for the cause. The root cause of the problem seems to be an ancient fix of the issue #4942 which prevents synchonous source parsing to be invoked from AWT during the code completion autopopup. To check whether the source is already parsed, this fix uses the SourceElement.getStatus() method which recently changed its behavior (see http://java.netbeans.org/source/browse/java/src/org/netbeans/modules/java/bridge/SrcElementImpl.java.diff?r1=1.8&r2=1.9). However, since the java source parsing is always invoked asynchonously on AWT now (via calls to the new Java/JMI infrastructure) the original fix can be removed. Fixed in [maintrunk]. Checking in src/org/netbeans/modules/editor/java/NbJavaSyntaxSupport.java; /cvs/editor/src/org/netbeans/modules/editor/java/NbJavaSyntaxSupport.java,v <-- NbJavaSyntaxSupport.java new revision: 1.59; previous revision: 1.58 done Checking in libsrc/org/netbeans/editor/ext/Completion.java; /cvs/editor/libsrc/org/netbeans/editor/ext/Completion.java,v <-- Completion.java new revision: 1.36; previous revision: 1.35 done Checking in libsrc/org/netbeans/editor/ext/ExtSyntaxSupport.java; /cvs/editor/libsrc/org/netbeans/editor/ext/ExtSyntaxSupport.java,v <-- ExtSyntaxSupport.java new revision: 1.25; previous revision: 1.24 done BTW: There hasn't been a daily build for 2 days now, what gives? *** Issue 49261 has been marked as a duplicate of this issue. *** Verified. |