Skip to content

Unable to debug tests when using zshย #11562

@dyc3

Description

@dyc3

Working on a PR for this

Environment data

  • VS Code version: 1.44.0
  • Extension version (available under the Extensions sidebar): 2020.4.76186
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda, and virtualenv
  • Relevant/affected Python packages and their versions: unittest
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable versionย #3977): No
  • Value of the python.languageServer setting: Microsoft
  • Default shell: /bin/zsh

Expected behaviour

Expected to be able to debug tests.

Actual behaviour

Attempting to debug any tests runs this command to run the test with the debugger

 env DEBUGPY_LAUNCHER_PORT=33405 /home/carson/Documents/code/crystal/.env/bin/python /home/carson/.vscode/extensions/ms-python.python-2020.4.76186/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher /home/carson/.vscode/extensions/ms-python.python-2020.4.76186/pythonFiles/visualstudio_py_testlauncher.py --us=./tests --up=test_*.py --uvInt=2 --result-port=43495

and results in the output:

zsh: no matches found: --up=test_*.py

with exit code 1

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Use zsh as your default shell.
  2. Attempt to debug any python unittest

Logs

Unnecessary

Metadata

Metadata

Assignees

Labels

area-debuggingbugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked on

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions