question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No intellisense on vanilla WSL Ubuntu setup

See original GitHub issue

Fresh 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisdiascommented, Jul 3, 2019

ok if i install jedi i get IntelliSense without having to set "python.jediEnabled": false.

sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install jedi

Maybe this needs to go into the extension readme…

0reactions
luabudcommented, Sep 17, 2019

This was fixed on the latest release. Please try it out and we’ll reopen in case you still see this issue. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found