Closed
Description
Environment data
- VS Code version: 1.43
- Extension version (available under the Extensions sidebar): 2020.2.64397
- OS and version: Win10 2004
- Python version (& distribution if applicable, e.g. Anaconda): 3.7.4
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
- Relevant/affected Python packages and their versions: XXX
- Relevant/affected Python-related VS Code extensions and their versions: XXX
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Jedi Disabled - Value of the
python.languageServer
setting: Microsoft
Expected behaviour
Linter gets installed
Actual behaviour
Fails to install linter
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Open Python project in WSL
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Interpreter does not exist; analysis will not be available.
There is no Pip installer available in the selected environment.
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
)
Downloading https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.31.nupkg...
Language server download complete
Unpacking archive... done
[Info - 5:21:35 PM] Analysis cache path: /home/stan/.cache/Microsoft/Python Language Server
[Info - 5:21:35 PM] Microsoft Python Language Server version 0.5.31.0
[Info - 5:21:35 PM] Workspace root: /home/stan/projects/work/LuaAPIDocumentation
[Info - 5:21:36 PM] Interpreter search paths:
[Info - 5:21:36 PM] User search paths:
[Error - 5:21:36 PM] Unable continue, no builtins module content.
[Error - 5:21:36 PM] Request textDocument/documentSymbol failed.
Message: Object reference not set to an instance of an object.
Code: -32000
at Microsoft.Python.LanguageServer.Implementation.Server.HierarchicalDocumentSymbol(DocumentSymbolParams params, CancellationToken cancellationToken) in E:\A\_work\3\s\src\LanguageServer\Impl\Implementation\Server.Symbols.cs:line 37
at Microsoft.Python.LanguageServer.Implementation.LanguageServer.DocumentSymbol(JToken token, CancellationToken cancellationToken) in E:\A\_work\3\s\src\LanguageServer\Impl\LanguageServer.cs:line 226
[Error - 5:24:24 PM] Unable to find document file:///home/stan/projects/work/LuaAPIDocumentation/api_gen/dependencies.py
[Error - 5:25:41 PM] Unable to find document file:///home/stan/projects/work/LuaAPIDocumentation/api_gen/dependencies.py
pip is aliased to pip3 and works fine in the terminal