Intellisense doesn't autocomplete if package names are repeated in different packages #178
Labels
area-intellisense
LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
bug
Issue identified by VS Code Team member as probable bug
From @kostub on September 13, 2017 22:10
Environment data
VS Code version: 1.16.0
Python Extension version: 0.7.0
Python Version: 2.7.12
OS and version: MacOS Sierra 10.12.6
Steps to reproduce:
foo
andtest
foo
create a filebar.py
test
directory create another packagefoo
test/foo
create a filegaz.py
So the directory structure is like:
Open a new file in
test/foo
directory. Saytest/foo/run.py
Add the following code:
Start typing
import foo.
Actual behavior
The only autocomplete option shown is
gaz
Expected behavior
Expected
bar
to be shown in the dropdown. Especially when absolute import is being used.In fact
import foo.gaz
is probably incorrect since it is not a valid relative import either.Logs
Output from
Python
output panelNone
Output from
Console window
(Help->Developer Tools menu)None
Copied from original issue: DonJayamanne/pythonVSCode#1211
The text was updated successfully, but these errors were encountered: