Skip to content

Test discovery errors out when navigating to the test panel (pytest) #23474

@vigneshmanick

Description

@vigneshmanick

Behaviour

When navigating to the test explorer for a python project with pytests, the panel errors out.

Expected vs. Actual

test explorer erros out vs showing the tests

Steps to reproduce:

Navigate to the test explorer in a python project with pytests enabled

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.9
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2024-05-24 10:57:23.117 [info] Discover tests for workspace name: test_proj - uri: /scratch/user/test_proj
2024-05-24 10:57:23.141 [info] > /scratch/user/myprograms/miniconda3/bin/conda run -p ./.pixi/envs/default --no-capture-output python /scratch/user/VSCode-linux-x64/data/extensions/ms-python.python-2024.2.1/pythonFiles/get_output_via_markers.py /scratch/user/VSCode-linux-x64/data/extensions/ms-python.python-2024.2.1/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
2024-05-24 10:57:23.141 [info] cwd: .
2024-05-24 10:57:24.814 [error] Error discovering pytest tests:
 [n [Error]: The (legacy) plugin 'activate' is trying to override the built-in command
with the same name, which is not allowed.

Please uninstall the plugin to stop seeing this error message.


	at ChildProcess.<anonymous> (/scratch/user/VSCode-linux-x64/data/extensions/ms-python.python-2024.2.1/out/client/extension.js:2:226040)
	at Object.onceWrapper (node:events:628:26)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1091:16)
	at Socket.<anonymous> (node:internal/child_process:449:11)
	at Socket.emit (node:events:513:28)
	at Pipe.<anonymous> (node:net:322:12)]

User Settings


condaPath: "/scratch/user/myprograms/miniconda3"

languageServer: "Pylance"

testing
• pytestArgs: 
• pytestEnabled: true

System information

CPUs	Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz (8 x 3092)
GPU Status	2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off
Load (avg)	0, 0, 0
Memory (System)	62.76GB (56.07GB free)
Process Argv	--no-sandbox .
Screen Reader	no
VM	100%

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions