cjwilliams43 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

line-continue'd 'from a import b, c, ...' loses code complete on second item #566

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start using a 'from a import'-style import, e.g.
from os import

2. Use a line-continuation character (\) and type first imported item on next 
line, e.g.
from os import \
    path, 

3. Begin typing the next item (engage code-completion if nec.), e.g.
from os import \
    path, en

What is the expected output? What do you see instead?
I expect that 'environ' should be in the code completion list, but the closest 
match in the list is enumerate (not a member of os, obviously)

What version of the product are you using? On what operating system?
Pyscripter 2.4.3 -- not sure if present in 2.4.1
Win7 Pro 64-bit SP1

Original issue reported on code.google.com by theman.t...@gmail.com on 23 Sep 2011 at 3:47

GoogleCodeExporter commented 9 years ago
To clarify, the first item (path, in this case) does auto-complete.

Original comment by theman.t...@gmail.com on 23 Sep 2011 at 3:48

GoogleCodeExporter commented 9 years ago
Actually the first item does not auto-complete properly either.  Simply putted 
auto-completion of the import statement does not take account of 
line-continuations, since it looks only at the current line.  On the other hand 
code scanning that supports code hints, the code explorer etc. does.

Original comment by pyscripter on 5 Oct 2011 at 1:03

GoogleCodeExporter commented 9 years ago
I am afraid this is a bit hard to fix for what it is worth.  Just type the 
whole import statement in one line and then break the line as needed.  I know 
it is not perfect...

Original comment by pyscripter on 5 Oct 2011 at 1:08