forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as duplicate of#24647
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Behaviour
Tests not showing in test explorer.
Steps to reproduce:
Create test file in python project directory
❯ cat tests/test_thing.py
def test_thing():
assert True
Refresh test explorer. The structure to test_thing.py shows, but no enclosed tests.
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
2024-12-20 11:37:29.192 [error] Test Discovery named pipe /tmp/python-test-discovery-722b8c0deee2ac3fab4c error: Error: Illegal argument: line must be non-negative
at Se (file:///home/coder/.vscode-server/cli/servers/Stable-138f619c86f1199955d53b4166bef66ef252935c/server/out/vs/workbench/api/node/extensionHostProcess.js:7:1186)
at new io (file:///home/coder/.vscode-server/cli/servers/Stable-138f619c86f1199955d53b4166bef66ef252935c/server/out/vs/workbench/api/node/extensionHostProcess.js:109:20862)
at /home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:963710
at Array.forEach (<anonymous>)
at e (/home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:963514)
at /home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:964138
at Array.forEach (<anonymous>)
at e (/home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:963514)
at /home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:964138
at Array.forEach (<anonymous>)
at e (/home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:963514)
at t.PythonResultResolver._resolveDiscovery (/home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:942416)
at t.PythonResultResolver.resolveDiscovery (/home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:941500)
at /home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:990563
at S.callback (/home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:962105)
at Object.thunk (/home/coder/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2057200)
2024-12-20 11:37:29.192 [info]
Extension version: 2024.22.0
VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 6.1.109-118.189.amzn2023.x86_64
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.10
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "Jedi"
testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| autoDocstring - Python Docstring Generator | njpwerner.autodocstring | 0.6.1 |
| Docker | ms-azuretools.vscode-docker | 1.29.3 |
| Even Better TOML | tamasfe.even-better-toml | 0.19.2 |
| GitHub Actions | github.vscode-github-actions | 0.27.0 |
| GitHub Copilot | GitHub.copilot | 1.253.0 |
| GitHub Copilot Chat | GitHub.copilot-chat | 0.23.2 |
| GitHub Pull Requests | GitHub.vscode-pull-request-github | 0.102.0 |
| JavaScript Debugger | ms-vscode.js-debug | 1.96.0 |
| json | ZainChen.json | 2.0.2 |
| Jupyter | ms-toolsai.jupyter | 2024.11.0 |
| Jupyter Cell Tags | ms-toolsai.vscode-jupyter-cell-tags | 0.1.9 |
| Jupyter Keymap | ms-toolsai.jupyter-keymap | 1.1.2 |
| Jupyter Notebook Renderers | ms-toolsai.jupyter-renderers | 1.0.21 |
| Jupyter Slide Show | ms-toolsai.vscode-jupyter-slideshow | 0.1.6 |
| Kubernetes | ms-kubernetes-tools.vscode-kubernetes-tools | 1.3.18 |
| Python | ms-python.python | 2024.22.0 |
| Table Visualizer for JavaScript Profiles | ms-vscode.vscode-js-profile-table | 1.0.10 |
| YAML | redhat.vscode-yaml | 1.15.0 |
System Info
| Item | Value |
|---|---|
| CPUs | AMD EPYC 7763 64-Core Processor (8 x 2445) |
| GPU Status | 2d_canvas: unavailable_software canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: disabled_software multiple_raster_threads: enabled_on opengl: disabled_off rasterization: disabled_software raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: disabled_software video_encode: disabled_software vulkan: disabled_off webgl: unavailable_software webgl2: unavailable_software webgpu: unavailable_software webnn: unavailable_software |
| Load (avg) | undefined |
| Memory (System) | 31.95GB (22.56GB free) |
| Process Argv | --crash-reporter-id e132f15b-1b86-4699-87e9-6597688c3cde |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | Coder: ccadogan∕ccadogan∕main |
| OS | Linux x64 6.1.109-118.189.amzn2023.x86_64 |
| CPUs | AMD EPYC 7R13 Processor (8 x 0) |
| Memory (System) | 30.64GB (17.54GB free) |
| VM | 0% |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team