You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When create python virtual environment at one project root directory using conda, the terminal can not activate the env automatically, and the test extension can not work correctly.
Steps to Reproduce:
cd you_project
conda create -p venv pytest now we create a conda virtual environment at ./venv
After that the terminal cannot automatically activate as before, and the test extension can not work.
It looks like somewhere can not correctly use the venv because I create it using conda create -p ....
The following is some logs after clicking refreshing tests button.
2024-12-03 14:28:15.676 [info] Native locator: Refresh started
2024-12-03 14:28:15.709 [info] Conda environment manager found at: /home/shawn/opt/miniconda3/bin/conda
2024-12-03 14:28:15.740 [info] Native locator: Refresh finished in 65 ms
2024-12-03 14:29:05.996 [info] Discover tests for workspace name: rum-assistant-python - uri: /home/shawn/workspace/rum-assistant-python
2024-12-03 14:29:05.996 [info] Running discovery for pytest using the new test adapter.
2024-12-03 14:29:05.996 [info] Python interpreter path: ./venv/bin/python
2024-12-03 14:29:05.999 [error] Test discovery already in progress, not starting a new one.
2024-12-03 14:29:05.999 [info] > conda run -n venv --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2024.21.2024112901-linux-x64/python_files/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2024.21.2024112901-linux-x64/python_files/printEnvVariables.py
2024-12-03 14:29:05.999 [info] shell: bash
2024-12-03 14:29:06.279 [error] getActivatedEnvironmentVariables [Error: Command failed: conda run -n venv --no-capture-output python /home/shawn/.vscode-server/extensions/ms-python.python-2024.21.2024112901-linux-x64/python_files/get_output_via_markers.py /home/shawn/.vscode-server/extensions/ms-python.python-2024.21.2024112901-linux-x64/python_files/printEnvVariables.py
EnvironmentLocationNotFound: Not a conda environment: /home/shawn/opt/miniconda3/envs/venv
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:531:35)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)] {
code: 1,
killed: false,
signal: null,
cmd: 'conda run -n venv --no-capture-output python /home/shawn/.vscode-server/extensions/ms-python.python-2024.21.2024112901-linux-x64/python_files/get_output_via_markers.py /hom
VS Code version: Code 1.95.3 (f1a4fb1, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.0-124-generic
System Info
Item
Value
CPUs
Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8 x 2112)
Type: Bug
When create python virtual environment at one project root directory using conda, the terminal can not activate the env automatically, and the test extension can not work correctly.
Steps to Reproduce:
cd you_project
conda create -p venv pytest
now we create a conda virtual environment at./venv
After that the terminal cannot automatically activate as before, and the test extension can not work.
It looks like somewhere can not correctly use the venv because I create it using
conda create -p ...
.The following is some logs after clicking refreshing tests button.
VS Code version: Code 1.95.3 (f1a4fb1, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.0-124-generic
System Info
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (35)
(3 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: