forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
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:
- Create a directory with two packages
fooandtest - Inside
foocreate a filebar.py - Inside the
testdirectory create another packagefoo - Inside
test/foocreate a filegaz.py
So the directory structure is like:
foo
|--> __init__.py
|--> bar.py
test
|-->__init__.py
|--> foo
|--> __init__.py
|--> gaz.py
Open a new file in test/foo directory. Say test/foo/run.py
Add the following code:
from __future__ import absolute_import
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 panel
None
Output from Console window (Help->Developer Tools menu)
None
Copied from original issue: DonJayamanne/pythonVSCode#1211
Metadata
Metadata
Assignees
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug