No intellisense on vanilla WSL Ubuntu setup
See original GitHub issueFresh Windows setup (on Parallels, but that shouldn’t matter)
Install Ubuntu LTS in WSL on Windows
By default, python3
exists…
Install VS Code Stable and then the Remote - WSL extension
In the WSL terminal, create a folder and then open code on it (code .
)
Create a python file
Type in print
and try to get Completions/IntelliSense
Result: No IntelliSense
I see this in the dev tools console:
workbench.main.js:238 [Extension Host] Error Python Extension: 2019-07-03 15:42:50: stderr jediProxy Error (stderr) Traceback (most recent call last):
File "completion.py", line 645, in <module>
import jedi
File "lib/python/jedi/__init__.py", line 41, in <module>
from jedi.api import Script, Interpreter, set_debug_function, \
File "lib/python/jedi/api/__init__.py", line 27, in <module>
from jedi.api.environment import InterpreterEnvironment
File "lib/python/jedi/api/environment.py", line 14, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
If I add "python.jediEnabled": false
to my settings.json
everything starts to work.
So out of the box, we don’t get completions on WSL. Is the new language service going to be enabled by default soon?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Developing in WSL - Visual Studio Code
Open a WSL terminal window (using the start menu item or by typing wsl from a command prompt / PowerShell). · Navigate to...
Read more >Intellisense not working on VSCode's Remote WSL? - Reddit
Hi! I'm trying to setup Remote WSL on VS Code with Python and so far it's working good, except for code completion. Anybody...
Read more >Intellisense autocomplete not working for wsl in vscode
What works for me is creating a venv, activating then launching VSCode from WSL with code . On the first time you will...
Read more >Targeting the Windows Subsystem for Linux from Visual Studio
If you've not already done so, you'll first need to enable developer mode and install WSL itself. This only takes a few seconds, ......
Read more >Install Ubuntu on WSL2 and get started with graphical ...
How to enable and install WSL on Windows 10 and Windows 11 ... previous tutorials related to installing WSL as a Windows feature...
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
ok if i install jedi i get IntelliSense without having to set
"python.jediEnabled": false
.Maybe this needs to go into the extension readme…
This was fixed on the latest release. Please try it out and we’ll reopen in case you still see this issue. Thanks!