Autocomplete Overwrites too much/too little [message #88653] |
Wed, 07 January 2009 10:19  |
Eclipse User |
|
|
|
In PDT 2 GA, the autocomplete will overwrite a few extra characters
(sometimes).
It always seems to overwrite the semi-colon, so if i have
$temp = $this->property;
And I autocomplete something else in place of ->property;, it will
overwrite the semicolon as well.
If I autocomplete a function call inside other parenthesis, it doesn't add
new parenthesis correctly. It will add the open, but seems to see the
next closing parenthesis and then creates a situation where it's nested
improperly.
If I autocomplete a function to replace an existing function, it adds new
parenthesis where unnecessary.
$temp = $this->method() becomes $temp = $this->otherMethod()()
Also, it sometimes overwrites the next newline or two and really goofs
things up.
Should I log a bug about this? Am I doing something wrong?
Tim
|
|
|
|
Re: Autocomplete Overwrites too much/too little [message #88743 is a reply to message #88698] |
Wed, 07 January 2009 13:58   |
Eclipse User |
|
|
|
Originally posted by: nickboldt+eclipse+newsgroup.gmail.com
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT, in case you're
wondering. :)
Michael Spector wrote:
> Hi,
>
> Please report a bug.
>
> Thanks!
>
> "Tim College" <tim@komta.com> wrote in message
> news:de28103c1bc7804f2e0c54c4febae1e5$1@www.eclipse.org...
>> In PDT 2 GA, the autocomplete will overwrite a few extra characters
>> (sometimes).
>>
>> It always seems to overwrite the semi-colon, so if i have
>>
>> $temp = $this->property;
>>
>> And I autocomplete something else in place of ->property;, it will
>> overwrite the semicolon as well.
>>
>> If I autocomplete a function call inside other parenthesis, it doesn't add
>> new parenthesis correctly. It will add the open, but seems to see the
>> next closing parenthesis and then creates a situation where it's nested
>> improperly.
>>
>> If I autocomplete a function to replace an existing function, it adds new
>> parenthesis where unnecessary.
>>
>> $temp = $this->method() becomes $temp = $this->otherMethod()()
>>
>> Also, it sometimes overwrites the next newline or two and really goofs
>> things up.
>>
>> Should I log a bug about this? Am I doing something wrong?
>>
>> Tim
>>
>
>
--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
|
|
|
|
Re: Autocomplete Overwrites too much/too little [message #88796 is a reply to message #88783] |
Wed, 07 January 2009 17:22  |
Eclipse User |
|
|
|
Right - so, I still can't reliably get the other behaviors happening, but
they still happen.
I had a couple variables concatenated together, and the autocomplete
overwrote the dot before the next variable. It highlights in yellow/red
what it's going to replace, and it was highlighting the incorrect thing,
then replaced exactly what it had highlighted.
This happens more often when the autocomplete suggestions box is visible,
but still not all the time.
I wonder if this is related to mark occurrences being a little whacky?
Mine highlights all sorts of garbage sometimes.
|
|
|
Powered by
FUDForum. Page generated in 0.02985 seconds