Intellisense does not work in Python 2.7.15
See original GitHub issueEnvironment data
- VS Code version: 1.30.2
- Extension version: Python 2019.1.0
- OS and version: OS X Mojave
- Python version: 2.7.15
- Type of virtual environment used: brew python
- Relevant/affected Python packages and their versions:
- Extendsions: Python and Visual Studio IntelliCode.
Settings
{
"editor.fontSize": 14,
"python.pythonPath": "/usr/local/bin/python",
"python.jediEnabled": false,
"files.autoSave": "afterDelay",
"editor.minimap.enabled": false,
}
Expected behaviour
VSCode can show some suggestion for variable.
Actual behaviour
The package can autocomplete, such as
But, can’t recognize the type of variable and no suggestion, like
Steps to reproduce:
Write those code on my png. I had tried set “python.jediEnabled”: false, not work too.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging
)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
New style IntelliSense does not work for Python 2.7 environment
"Use new style IntelliSense for environments" checkbox is on: Nothing happens for file when current is Python 2.7 environment. File is processed when...
Read more >Visual Studio Code: Intellisense not working - Stack Overflow
Open the commands window again and search this time for Settings . Select Prefernces: Open settings (JSON) . · In the JSON file...
Read more >Microsoft.PythonTools.Analyzer.exe stuck at parsing psutil ...
Please go to Tools, Options, Python, Experimental and enable "Use new style IntelliSense for environments". Despite the option remaining under "Experimental", ...
Read more >Porting Python 2 Code to Python 3 — Python 3.11.1 ...
Python 2.6 is no longer freely supported and thus is not receiving bugfixes. This means you will have to work around any issues...
Read more >Intellisense step by step configuration on visual studio code
Hello, I am running into issues where VS Code doesn't appear to see my python correctly? Here is my user settings currently, and...
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 FreeTop 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
Top GitHub Comments
Sorry. No more log in Python output.
It was showing no errors.
I found out that my PythonPath was pointing to py.exe (I changed the Python files). Re-pointing to python.exe solved the problem for me.