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 49117 - Code completion window does not update completions acc. to typed tex
Summary: Code completion window does not update completions acc. to typed tex
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords: REGRESSION
: 49116 49261 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-15 21:07 UTC by Jesse Glick
Modified: 2007-11-05 13:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-09-15 21:07:20 UTC
Appears to be a very recent regression; noticed
only in 040914. When I invoke code completion
(Ctrl-Space), I get an appropriate list of
completions. But when I start typing a prefix of
the (e.g.) method I want, the list does not change
to include only matches to the new prefix.

Let me know if it does not happen for you; I can
try to check older builds and come up with a test
case.
Comment 1 Dusan Balek 2004-09-16 07:30:03 UTC
*** Issue 49116 has been marked as a duplicate of this issue. ***
Comment 2 Miloslav Metelka 2004-09-16 09:08:50 UTC
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.
Comment 3 Dusan Balek 2004-09-16 11:53:52 UTC
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
Comment 4 _ gtzabari 2004-09-16 16:18:58 UTC
BTW: There hasn't been a daily build for 2 days now, what gives?
Comment 5 Martin Roskanin 2004-09-20 13:46:07 UTC
*** Issue 49261 has been marked as a duplicate of this issue. ***
Comment 6 Roman Strobl 2005-07-15 12:52:16 UTC
Verified.