Code completion on 'True' inserts wrong code

View: New views
3 Messages — Rating Filter:   Alert me  

Code completion on 'True' inserts wrong code

by René Pijlman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In Wing Pro 3.1.2-1 on Windows XP, when I type:

     x = T

... and in the code completion dialog arrow-down to 'True' and select it
with Tab, Wing produces this source code:

      try:

     except:
         x =

I expected:

     x = True

This only happens when I select 'True'. With other choices, code
completion seems to work fine. Even 'False' works :-)

--
René
_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide

Re: Code completion on 'True' inserts wrong code

by Wingware Support :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

René Pijlman wrote:

> In Wing Pro 3.1.2-1 on Windows XP, when I type:
>
>     x = T
>
> ... and in the code completion dialog arrow-down to 'True' and select it
> with Tab, Wing produces this source code:
>
>      try:
>
>     except:
>         x =
>
> I expected:
>
>     x = True

I can't seem to reproduce this.  It looks like the try snippet is being
completed -- is the try snippet just below True on your system?

Thanks,

John
_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide

Re: Code completion on 'True' inserts wrong code

by René Pijlman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wingware Support wrote:
> René Pijlman wrote:
>> ... and in the code completion dialog arrow-down to 'True' and select
>> it with Tab, Wing produces this source code:
[...]
> I can't seem to reproduce this.  It looks like the try snippet is being
> completed -- is the try snippet just below True on your system?

Yes, it is.

One more detail: it only happens when I use the Tab key to select 'True'
(Tab is configured as the auto-complete key). When I doubleclick 'True'
in the auto-completion dialog I do get the expected result:

     x = True

And by the way, when I arrow down to 'try(snippet)' and Tab that, I get
this source code:

     x = try(snippet)

I guess that's also not what's supposed to happen.

--
René
_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
LightInTheBox - Buy quality products at wholesale price