2024-12-11 11:31:38.856 [info] Native locator: Refresh started
2024-12-11 11:31:38.872 [info] Conda environment manager found at: /Users/dholth/miniconda3/bin/conda
2024-12-11 11:31:38.935 [info] Conda environment manager found at: /Users/dholth/miniforge3/bin/conda
2024-12-11 11:31:38.936 [info] Conda environment manager found at: /Users/dholth/miniconda5/bin/conda
2024-12-11 11:31:38.939 [info] Conda environment manager found at: /Users/dholth/minicondax86/bin/conda
2024-12-11 11:31:38.973 [info] Native locator: Refresh finished in 116 ms
2024-12-11 11:31:41.979 [info] Discover tests for workspace name: conda-pupa - uri: /Users/dholth/prog/conda-pupa
2024-12-11 11:31:41.979 [info] Running discovery for pytest using the new test adapter.
2024-12-11 11:31:41.980 [info] Python interpreter path: ~/miniconda3/envs/pupa/bin/python
2024-12-11 11:31:41.981 [info] Setting environment variable _CE_M in collection to {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable XML_CATALOG_FILES in collection to file:///Users/dholth/miniconda3/envs/pupa/etc/xml/catalog file:///etc/xml/catalog file:///Users/dholth/miniconda3/envs/pupa/etc/xml/catalog file:///etc/xml/catalog {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable CONDA_ROOT in collection to /Users/dholth/miniconda3 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable CONDA_PREFIX in collection to /Users/dholth/miniconda3/envs/pupa {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable CONDA_PROMPT_MODIFIER in collection to (pupa) {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable CONDA_STACKED_3 in collection to true {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable _CE_CONDA in collection to {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable CONDA_SHLVL in collection to 3 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable XPC_SERVICE_NAME in collection to 0 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable CONDA_DEFAULT_ENV in collection to pupa {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Prepending environment variable PATH in collection with /Users/dholth/miniconda3/envs/pupa/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Setting environment variable CONDA_PREFIX_2 in collection to /Users/dholth/miniconda3/envs/pupax {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-11 11:31:41.982 [info] Prepending environment variable PS1 in collection with (pupa) {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-12-11 11:31:41.985 [info] All environment variables set for pytest discovery:
...
2024-12-11 11:31:41.988 [info] > ~/minicondax86/bin/conda run -n pupa --no-capture-output python ~/.vscode/extensions/ms-python.python-2024.20.0-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.20.0-darwin-arm64/python_files/printEnvVariables.py
2024-12-11 11:31:41.988 [info] shell: bash
2024-12-11 11:31:42.711 [error] getActivatedEnvironmentVariables [Error: Command failed: /Users/dholth/minicondax86/bin/conda run -n pupa --no-capture-output python /Users/dholth/.vscode/extensions/ms-python.python-2024.20.0-darwin-arm64/python_files/get_output_via_markers.py /Users/dholth/.vscode/extensions/ms-python.python-2024.20.0-darwin-arm64/python_files/printEnvVariables.py
EnvironmentLocationNotFound: Not a conda environment: /Users/dholth/minicondax86/envs/pupa
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at ChildProcess.exithandler (node:child_process:423: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: '/Users/dholth/minicondax86/bin/conda run -n pupa --no-capture-output python /Users/dholth/.vscode/extensions/ms-python.python-2024.20.0-darwin-arm64/python_files/get_output_via_markers.py /Users/dholth/.vscode/extensions/ms-python.python-2024.20.0-darwin-arm64/python_files/printEnvVariables.py'
}
2024-12-11 11:31:42.714 [info] > ~/minicondax86/bin/conda run -n pupa --no-capture-output python ~/.vscode/extensions/ms-python.python-2024.20.0-darwin-arm64/python_files/get_output_via_markers.py -m pytest -p vscode_pytest --collect-only .
2024-12-11 11:31:42.714 [info] cwd: .
2024-12-11 11:31:43.049 [error]
EnvironmentLocationNotFound: Not a conda environment: /Users/dholth/minicondax86/envs/pupa
2024-12-11 11:31:43.083 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/dholth/prog/conda-pupa.
2024-12-11 11:31:43.083 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/dholth/prog/conda-pupa. Creating and sending error discovery payload
2024-12-11 11:31:43.083 [error] pytest test discovery error for workspace: /Users/dholth/prog/conda-pupa
The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/dholth/prog/conda-pupa
Type: Bug
Behaviour
vscode-python uses random conda binary for failed pytest discovery.
Steps to reproduce:
Output (Python)windowOutput (Python)window using random conda binary/Users/dholth/miniforge3/bin/condainstead of"python.condaPath"Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Note that
/Users/dholth/minicondax86/bin/condais used below. I want it to use the configured conda, not a randomly discovered, very outdated one.Extension version: 2024.20.0
VS Code version: Code 1.95.3 (Universal) (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Darwin arm64 24.1.0
Modes:
python.languageServersetting: DefaultUser Settings
Installed Extensions
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments