-
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
command 'python.runtests' not found #3591
Comments
I cannot reproduce this behaviour at all - I don't see the popup messages that you see when I install the extension in VS Code and load up a simple test case. I think if you were to update to the latest extension it might help, could you try that? You might need to fill in the Http: Proxy settings in your VS Code settings, but I really doubt there is a problem with regard to this. Please refer to this document to see if this is relevant - since you can install the extension I rather think not.. |
It turns out I can reproduce this with the latest extension code in VS Code Insiders! Using this as the workspace: Follow the README.md file included to get the repro case up and running. Workaround still seems to be running VS Code (stable, not insiders) and update to the latest stable version of the extension. |
I started getting the same error ( I uninstalled and reinstalled the Python extension but that had no effect
Python extension 2019.5.18875 |
Same issue just now |
I had switched jedi off recently - switched it back on and things are working now |
To clarify, this is the Python language server. In my case, I had switched to Pylance but hit an issue, so I switched back by uninstalling Pylance, but I needed to update |
VSCode version (1.49.3 user setup) |
Fixed by #16769, test commands do not rely on language servers anymore: |
Environment data
pytest 4.0.1
Expected behaviour
Running command with tests (run tests, debug tests, etc.)
Actual behaviour
Popup message in the bottom right corner (with red "X" symbol):
command 'python.runtests' not found
command 'python.debugtests' not found
command 'python.discoverTests' not found
command 'python.runCurrentTestFile' not found
Steps to reproduce:
Ctrl+Shift+P
Choose "Python: Run all unit tests" or "Debug all unit tests" or any other command with testing.
Logs
Output for
Python
in theOutput
panel is empty when getting this errorOutput from
Console
is empty.##Other info:
Reinstalling VS Code didn't help.
Reinstalling Python package (with reload of VS code of course) didn't help.
Reboot didn't help.
Removing
C:\Users\_USERDIR_\.vscode\extensions
(and installing then extension again) didn't help.pip uninstall pytest + pip install pytest didn't help.
It looks like the extension installation is corrupted.
Am I missing some cache clearing option to fix the issue?
UPD.: my work PC is behind the proxy. It might be valuable
The text was updated successfully, but these errors were encountered: