forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityIssue identified as high-priority
Description
Environment data
- VS Code version: Insiders
- Extension version (available under the Extensions sidebar): Master
- OS and version: Mac
- Python version (& distribution if applicable, e.g. Anaconda): 3.6
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Actual behavior
- Code navigation does not work
- Intellisense does not work
Expected behavior
Code navigation should work.
Steps to reproduce:
- Open an empty folder in VSC
- Create a folder
mypkg1
- Add empty
__init__.py
and__main__.py
files in the abovemypkg1
dir - Add a file named
bar.py
in the above directory with the following contents:
def do_something():
pass
- Create a file named
foo.py
in the above directory with the following contents:
from mypkg1.bar import do_something
do_something()
- Note, while typing
from mypkg1.
there's no auto completion (intellisense). This works in Jedi. - Try to go to definition of
do_something
, will not go intobar.py
file. - Notice the squigglies under
mymod1.bar
. - Message in Problems window is
[Python (analysis)] Unable to resolve 'mymod1.bar'. IntelliSense may be missing for this module.
This works in Jedi, both intellisense and code navigation.
FYI - This was identified while working on PTVSD.
winterjung, awnion, leandrorebelo, rben01, blackrobot and 3 more
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityIssue identified as high-priority