Intellisense and Code navigation fails in New language when using package names
See original GitHub issueEnvironment 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.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:14 (2 by maintainers)
Top Results From Across the Web
IntelliSense in Visual Studio Code
This issue is caused by missing type declaration (typings) files in JavaScript. You can check if a type declaration file package is available...
Read more >Visual Studio Code: Intellisense not working - Stack Overflow
Solution: Configure the path to the python executable in settings.json . Remember to restart vscode after. The module is located in a non- ......
Read more >Configure a C++ project for IntelliSense - Microsoft Learn
Learn how to manually configure your C++ project to get IntelliSense working properly by using the Visual Studio IDE to help you identify ......
Read more >Integrating Code Completion in Visual Studio Code - Strumenta
Integrating Code Completion in Visual Studio Code – With the Language ... with features such as code completion, error detection, navigation, and others....
Read more >Code completion | PyCharm Documentation - JetBrains
Techniques to accelerate the editing process in PyCharm using code ... Invoking Basic code completion for the second time shows the names of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same problem.
The vscode and language server are updated.
vscode version: 1.25.1 Architecture: x64
I have the same problem.