I expect the tests to get discovered, but instead I got a spawn error. There are other users who mentioned this before and managed to get around with restarting etc. but this does not seem to work. I tested in multiroot and simple folder, but I get the same issue.
(common_env) [14:07:09]matbouchy@pxssmtdam001 ~/projects/dams-core$ conda run -n common_env --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/projects/dams-core -s --cache-clear test
>>>PYTHON-EXEC-OUTPUT
[{"rootid": ".", "root": "/home/matbouchy/projects/dams-core", "parents": [{"id": "./test", "kind": "folder", "name": "test", "parentid": ".", "relpath": "./test"}, {"id": "./test/dams_core", "kind": "folder", "name": "dams_core", "parentid": "./test", "relpath": "./test/dams_core"}, {"id": "./test/dams_core/data", "kind": "folder", "name": "data", "parentid": "./test/dams_core", "relpath": "./test/dams_core/data"}, {"id": "./test/dams_core/data/access", "kind": "folder", "name": "access", "parentid": "./test/dams_core/data", "relpath": "./test/dams_core/data/access"}, {"id": "./test/dams_core/data/access/test_accessor.py", "kind": "file", "name": "test_accessor.py", "parentid": "./test/dams_core/data/access", "relpath": "./test/dams_core/data/access/test_accessor.py"}], "tests": [{"id": "./test/dams_core/data/access/test_accessor.py::test_double_bitemporal_join", "name": "test_double_bitemporal_join", "source": "./test/dams_core/data/access/test_accessor.py:8", "markers": [], "parentid": "./test/dams_core/data/access/test_accessor.py"}]}]
<<<PYTHON-EXEC-OUTPUT
Type: Bug
Behaviour
Expected vs. Actual
I expect the tests to get discovered, but instead I got a spawn error. There are other users who mentioned this before and managed to get around with restarting etc. but this does not seem to work. I tested in multiroot and simple folder, but I get the same issue.
Steps to reproduce:
This is the same as 15739
Observe process runs successfully and discovers pytest test.
Diagnostic data
python.languageServersetting: DefaultOutput for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)User Settings
Extension version: 2023.14.0
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 4.18.0-305.25.1.el8_4.x86_64
System Info
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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments