Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random-seeming conda found for conda run test discovery #235839

Closed
dholth opened this issue Dec 11, 2024 · 1 comment
Closed

Random-seeming conda found for conda run test discovery #235839

dholth opened this issue Dec 11, 2024 · 1 comment

Comments

@dholth
Copy link

dholth commented Dec 11, 2024

Does this issue occur when all extensions are disabled?: No

  • VS Code Version: ```
    Version: 1.95.3 (Universal)
    Commit: f1a4fb1
    Date: 2024-11-13T14:50:04.152Z (4 wks ago)
- OS Version: OS: Darwin arm64 24.1.0

Steps to Reproduce:

1. Install several [miniconda distributions](https://docs.anaconda.com/miniconda/) into separate directories in ~/miniconda3, ~/miniconda5, ~/minicondax86
2. Create a development environment with conda and pytest "conda create -n condarun pytest conda"
3. Set conda path in settings to `"python.condaPath": "<home directory>/miniconda3/bin/conda",
4. Select new environment, note conda search in `Output (Python)` window

2024-12-11 11:17:15.171 [info] Native locator: Refresh started
2024-12-11 11:17:15.187 [info] Conda environment manager found at: /Users/dholth/miniconda3/bin/conda
2024-12-11 11:17:15.221 [info] Conda environment manager found at: /Users/dholth/miniconda5/bin/conda
2024-12-11 11:17:15.223 [info] Conda environment manager found at: /Users/dholth/minicondax86/bin/conda
2024-12-11 11:17:15.224 [info] Conda environment manager found at: /Users/dholth/miniforge3/bin/conda
2024-12-11 11:17:15.253 [info] Native locator: Refresh finished in 82 ms

5. Set up, discover pytest. Observe `Output (Python)` window using random conda binary `/Users/dholth/miniforge3/bin/conda` instead of `"python.condaPath"`

2024-12-11 11:18:24.774 [error] getActivatedEnvironmentVariables [Error: Command failed: /Users/dholth/miniforge3/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

@dholth
Copy link
Author

dholth commented Dec 11, 2024

Reported at plugin microsoft/vscode-python#24585

@dholth dholth closed this as completed Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant