Bug 66614 - [content assist] Cursor jumps to next block of text after autocompletion is used
Summary: [content assist] Cursor jumps to next block of text after autocompletion is used
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-06-10 19:48 EDT by Max Gilead CLA
Modified: 2007-06-22 10:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Gilead CLA 2004-06-10 19:48:57 EDT
Cursor jumps to next block of text after autocompletion is used. In this example
below:

private void foo()
    {
    int a = "".le
    double foo = 0.0;
    }

place cursor after '.le' in third line and press Ctrl+Space to actiavate
autocompletion - method name is completed correctly but cursor jumps to the
middle of 'double' word.

3.0RC1 Linux/GTK
Comment 1 Tom Hofmann CLA 2004-06-11 05:52:09 EDT
I suspect mixed "Tab for spaces" and formatter tab usage settings. 

Marking as dup of the preferences bug since that is really what is the problem.

*** This bug has been marked as a duplicate of 19036 ***
Comment 2 Max Gilead CLA 2004-06-11 06:26:17 EDT
I'm not sure if this is really a dup since curstor shouldn't me moved at all -
it should stay at the end of text inserted by autocomplete. In other words, if
autocompletion tries to insert newline and move cursor four character right,
mixing spaces and  tabs (indeed it looks that way) then it's still problem with
autocompletion - it shouldn't try to insert newline and do anything else at all
in the first place.
Comment 3 Tom Hofmann CLA 2004-06-11 07:00:16 EDT
hm, perhaps closing was too fast - I cannot reproduce however. Please reopen
with your preferences attached.
Comment 4 torkjel hongve CLA 2004-10-25 11:24:55 EDT
I'm seeing the the same bug on 3.0.1/linux. I can use eclipse for a while,
sometimes several days, without problems, but suddenly it starts moving the
cursor to a few characters into the next line, each time I use autocomplete. The
only workaround I've found is to restart eclipse. 

I have "Editor->Typing->Insert spaces for tabs" enabled and "Code
formatter->Indentation->Use tab character" disabled.
Comment 5 Dani Megert CLA 2004-11-02 03:53:06 EST
Anything in .log?
Comment 6 Max Gilead CLA 2004-12-05 17:05:58 EST
Just wanted to say that I personally didn't experience this problem for quite
some time now (using 3.1M3 currently).
Comment 7 Dani Megert CLA 2004-12-06 04:28:03 EST
OK, thanks. I close as remind.
Comment 8 Dani Megert CLA 2007-06-22 09:59:10 EDT
Get rid of deprecated state.
Comment 9 Dani Megert CLA 2007-06-22 10:04:28 EDT
.