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 should not appear if the caret has moved since CC was implicitly or explicitly invoked | ||
---|---|---|---|
Product: | editor | Reporter: | _ tboudreau <tboudreau> |
Component: | Completion & Templates | Assignee: | Miloslav Metelka <mmetelka> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ tboudreau
2005-08-04 22:48:17 UTC
I've reported a very similar issue 61406. Relatedly, once code completion comes up, if you ignore it and start typing, it can do some strange things. For example, frequently I'm typing something like. for (Iterator i=someIterator(); i.hasNext();) { Code completion pops up sometime around when I type i. - and it stays up as I type the rest of the line. I press enter to go to the next line and end up with some random thing that was in the code completion list inserted at the end of the line, which I then have to delete. for (Iterator i=someIterator(); i.hasNext();) { someRandomThing Increasing priority to P1 to mark this issue as beta-stopper. Justification: code completion appears when it should not and it happens often, it can be quite frustrating. I'll try to fix this now. Fixed in trunk: Checking in src/org/netbeans/modules/editor/completion/CompletionImpl.java; /cvs/editor/completion/src/org/netbeans/modules/editor/completion/CompletionImpl.java,v <-- CompletionImpl.java new revision: 1.12; previous revision: 1.11 Sorry, this isn't fixed. 1: Open any java source file. In some method (or wherever), type . Immediately press backspace Code completion appears 2: Type something Code completion stays even though there is no purpose for it 2 perhaps can't be helped; but 1 doesn't seem to have changed. Original P1 problem was fixed. I cannot reproduce problem of opening CC after pasting "result." as well as problem of for (Iterator i=someIterator(); i.hasNext();) { where completion was not closed. Now, CC is closed after typing "(". New problems you mentioned don't meet the P1 criteria. I am creating new issue #64792 for that and closing this one. |