-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL2 can't install/find linter #10586
Comments
@Stanzilla Can you try and see if |
@karthiknadig hey there, thanks for the answer! where would I change which command is used for the interpreter? |
@Stanzilla I meant can you try running We don't have a way to change this command. I just want to make sure the selected interpreter has the pip module, which is what the extension uses to install. |
Oh okay,
|
@Stanzilla Can you share a screenshot with your project open in VSCode? |
I think I should clarify where the error occurs. Since VSCode has a WSL mode, it might not have been clear what I meant with "in WSL". In both modes, the files are inside of the WSL VM. I have a suspicion that my vscode per-repo settings might confuse everything since it sets
and probably does not switch to Maybe there should be two settings, like there is for other features, in the form of python.pythonPath.windows/unix/mac here's a screenshot though |
@Stanzilla we are doing work to change how we handle the path to interpreter entirely. We will definitely consider this scenario when addressing that. |
Related #10375 |
The new setting is now available with the latest version of the extension as a experiment. Add this to your user settings, you will have to enable this in WSL and also in the host, for it to work well between the two.
After this, you will have to select the interpreter once, per workspace. The extension will remember the setting on that machine from then on. There is also a setting to provide a global default interpreter that we will use in case no interpreter is selected. you can set that using
|
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Jedi Disabledpython.languageServer
setting: MicrosoftExpected 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]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)pip is aliased to pip3 and works fine in the terminal
The text was updated successfully, but these errors were encountered: