Skip to content

command 'python.runtests' not found #3591

@belesev

Description

@belesev

Environment data

  • VS Code version: 1.29.1
  • Extension version (available under the Extensions sidebar): 2018.11.0
  • OS and version: Windows 10 Enterprise x64
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.13 32-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions:
    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 the Output panel is empty when getting this error
Output 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-testingbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions