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
Unable to debug under Arch Linux: "Python is not installed" / "You need to select a Python interpreter" #14721
Comments
@mephinet I see you're using an older version of the extension. Can you try updating to the latest and see if it has the same problem? |
I have the same issue, can you give me a hint how to install a newer version? |
@hwmrocker are you using the open source version of VS Code? The latest version of the Python extension on the open-vsx marketplace is 2020.10.332292344, whereas on Microsoft's marketplace it is 2020.11.358366026. I was having the same issue, but installing the proprietary version of VS Code solved it, so I imagine this is just a bug on the 2020.10.332292344 version of the extension. Edit: I tested the 2020.10.332292344 version on proprietary VS Code and it worked normally. |
This is caused by an issue with the latest version of electron (9.3.4) and vscode: The workaround (downgrading electron) : |
Related #9576 |
Can confirm that downgrading
(Or whichever earlier version you happen to have cached.) |
downgrading electron9 solved my python interpreter error, but now it complains that "Linter pylint is not installed". |
same issue here on Arch Linux |
We're diverging from this GitHub issue, but |
Yes, I did check. All was working well until the most recent Arch/Manjaro updates. |
You might want to start a new issue then. My suspicion is the behavior I've seen recently where the extension always looks to the system Python first. You might want to install |
Following update |
Should be fixed in the latest release of extension. |
Environment data
python.languageServer
setting: NoneExpected behaviour
After setting the Python binary once, I'm able to run python scripts using F5.
Actual behaviour
When pressing F5, a window pops up: "You need to select a Python interpreter before you start debugging. Tip: ..."
When I click on "Select Python Interpreter", I see the current value (which correctly is /usr/bin/python). I enter /usr/bin/python, or /usr/bin/python3.8, and I'm immediately asked again, so I enter the same value again. No error is shown.
Then, when I press F5, the same window as before pops up again.
The text was updated successfully, but these errors were encountered: