Bug 62173 - Intermittent completion cursor misplacement
Summary: Intermittent completion cursor misplacement
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-05-13 16:14 EDT by Ernest Pasour CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ernest Pasour CLA 2004-05-13 16:14:28 EDT
I'm using M8.  I have seen this once before with M8, but never with any 
previous version (I used M7, M6, and M5 quite a bit).  One other developer I 
know has seen the same problem.

The problem is that somehow eclipse gets into a mode where it doesn't 
correctly position the cursor after I select a completion proposal.  The 
cursor is placed too many characters beyond where it's supposed to be (as it 
happens, the extra distance is the same number of characters that were added 
by the completion operation).  Although you will probably not be able to 
reproduce this, I am submitting it in the hope that you can look at the code 
and see what could possibly be causing it.

So, if I have the following snippet:

get().getDocument(getEditorInput()).getLineOfOffset(100);

I put the cursor after "get" and hit ctrl+space.  I scroll down to 
the "getDocumentProvider" item and hit return.  The string is completed 
correctly, but the cursor ends up after the "g" in "getEditorInput".

If I type in "getDocumentProvide" and hit ctrl+space after the "e", then the 
last character is added, but the cursor is placed after the "(".

Once the problem manifests, it is consistent.

Workaround: closing and reopening the affected source editor seems to fix the 
problem.
Comment 1 Dani Megert CLA 2004-05-14 08:52:22 EDT
do you have anything in .log?
Comment 2 Ernest Pasour CLA 2004-05-14 09:01:48 EDT
Not other than Debugger exceptions.  I've got loads of those.  But I don't see
any exceptions around the time it started happening.

org.eclipse.debug.core.DebugException: Invalid stack frame

org.eclipse.debug.core.DebugException[5010]: java.lang.InternalError: Got
MethodID of ReferenceType that is not a member of the ReferenceType

org.eclipse.jdi.TimeoutException
Comment 3 Dani Megert CLA 2004-05-17 06:55:04 EDT
cannot reproduce - resolving as REMIND until we have more data
Comment 4 Dani Megert CLA 2007-06-22 09:59:08 EDT
Get rid of deprecated state.
Comment 5 Dani Megert CLA 2007-06-22 10:04:27 EDT
.