Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Autocomplete Overwrites too much/too little
Autocomplete Overwrites too much/too little [message #88653] Wed, 07 January 2009 15:19 Go to next message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
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 #88698 is a reply to message #88653] Wed, 07 January 2009 17:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.zend.com

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
>
Re: Autocomplete Overwrites too much/too little [message #88743 is a reply to message #88698] Wed, 07 January 2009 18:58 Go to previous messageGo to next message
Eclipse UserFriend
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 #88783 is a reply to message #88698] Wed, 07 January 2009 22:09 Go to previous messageGo to next message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
Tim made one here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=260299
Re: Autocomplete Overwrites too much/too little [message #88796 is a reply to message #88783] Wed, 07 January 2009 22:22 Go to previous message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
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.
Previous Topic:[Announce] PDT 2.1.0M4 is available
Next Topic:Easiest way to get black background?
Goto Forum:
  


Current Time: Fri Feb 03 02:59:44 GMT 2023

Powered by FUDForum. Page generated in 0.22257 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top