-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
microsoft/python-environment-tools
#234Labels
info-neededIssue requires more information from posterIssue requires more information from poster
Description
Type: Bug
Behaviour
The VS Code Python extension detects my Pixi environment as a Conda environment.
Steps to reproduce:
-
Create and activate a Pixi environment:
pixi init --format pyproject pixi shell
-
Open the project in VS Code.
-
Run “Python: Select Interpreter” in the Command Palette.
-
Observe that python from pixi is not there (have to manually specify the path)
-
Additionally, as a result, language server doesn't work correctly, e.g. there is infinite
Loading...on hover
Diagnostic data
Output for Python Environments in the Output panel
Some("/home/user/.pixi/envs/python/bin/python"), version: Some("3.13.5"), conda_dir: None, arch: None }
2025-07-27 19:32:17.517 [info] Discovered env: /home/user/.pixi/envs/python/bin/python
2025-07-27 19:32:17.518 [info] Discovered env: /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.518 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.531 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.532 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.537 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.537 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.538 [info] Discovered env: /bin/python3
2025-07-27 19:32:17.539 [info] Discovered env: /usr/bin/python3
2025-07-27 19:32:17.553 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.554 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.555 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.558 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.591 [info] Locator Conda took 58.488053ms
2025-07-27 19:32:17.593 [info] Locator Homebrew took 1.518968ms
2025-07-27 19:32:17.594 [info] Locator LinuxGlobal took 52.911333ms
2025-07-27 19:32:17.594 [info] Locator PipEnv took 80.387µs
2025-07-27 19:32:17.595 [info] Locator Pixi took 112.653µs
2025-07-27 19:32:17.595 [info] Locator Poetry took 5.946806ms
2025-07-27 19:32:17.595 [info] Locator PyEnv took 250.45µs
2025-07-27 19:32:17.595 [info] Locator Venv took 99.383µs
2025-07-27 19:32:17.595 [info] Locator VirtualEnv took 359.401µs
2025-07-27 19:32:17.596 [info] Locator VirtualEnvWrapper took 314.842µs
2025-07-27 19:32:17.596 [info] Locator GlobalVirtualEnvs took 117.681µs
2025-07-27 19:32:17.596 [info] Locator Locators took 59.022196ms
2025-07-27 19:32:17.596 [info] Locator Path took 69.733193ms
2025-07-27 19:32:17.596 [info] Locator Workspaces took 13.781409ms
2025-07-27 19:32:17.601 [info] Conda not found, turning off conda features. Error: Conda not found
at A (/home/user/.vscode/extensions/ms-python.vscode-python-envs-1.1.12072328-linux-x64/dist/extension.js:2:504122)
at D (/home/user/.vscode/extensions/ms-python.vscode-python-envs-1.1.12072328-linux-x64/dist/extension.js:2:504247)
at t.registerCondaFeatures (/home/user/.vscode/extensions/ms-python.vscode-python-envs-1.1.12072328-linux-x64/dist/extension.js:2:520870)
at async Promise.all (index 1)
at Immediate.<anonymous> (/home/user/.vscode/extensions/ms-python.vscode-python-envs-1.1.12072328-linux-x64/dist/extension.js:2:629562)
2025-07-27 19:32:17.602 [info] Telemetry: {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":70,"breakdown":{"GlobalVirtualEnvs":0,"Locators":59,"Path":69,"Workspaces":13},"locators":{"Conda":58,"Homebrew":1,"LinuxGlobal":52,"PipEnv":0,"Pixi":0,"Poetry":5,"PyEnv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
2025-07-27 19:32:17.604 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.608 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.613 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.621 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.631 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.632 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.637 [warning] Unable to find conda package Python in "/home/user/.pixi/envs/python", trying slower approach
2025-07-27 19:32:17.642 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.643 [info] Discovered env: /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.643 [error] Unable to find Conda Manager for env: CondaEnvironment { prefix: "/home/user/.pixi/envs/python", executable: Some("/home/user/.pixi/envs/python/bin/python"), version: Some("3.13.5"), conda_dir: None, arch: None }
2025-07-27 19:32:17.644 [info] Discovered env: /home/user/.pixi/envs/python/bin/python
2025-07-27 19:32:17.645 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.646 [info] Resolved Python Environment /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.731 [info] Discovered env: /bin/python3
2025-07-27 19:32:17.731 [info] Discovered env: /usr/bin/python3
2025-07-27 19:32:17.732 [info] Locator Conda took 60.045154ms
2025-07-27 19:32:17.732 [info] Locator Homebrew took 285.719µs
2025-07-27 19:32:17.733 [info] Locator LinuxGlobal took 57.367387ms
2025-07-27 19:32:17.733 [info] Locator PipEnv took 23.886µs
2025-07-27 19:32:17.733 [info] Locator Pixi took 26.609µs
2025-07-27 19:32:17.733 [info] Locator Poetry took 5.74783ms
2025-07-27 19:32:17.733 [info] Locator PyEnv took 152.462µs
2025-07-27 19:32:17.733 [info] Locator Venv took 36.806µs
2025-07-27 19:32:17.733 [info] Locator VirtualEnv took 73.333µs
2025-07-27 19:32:17.733 [info] Locator VirtualEnvWrapper took 469.33µs
2025-07-27 19:32:17.733 [info] Locator GlobalVirtualEnvs took 54.755µs
2025-07-27 19:32:17.734 [info] Locator Locators took 60.913415ms
2025-07-27 19:32:17.734 [info] Locator Path took 79.800816ms
2025-07-27 19:32:17.734 [info] Locator Workspaces took 19.909452ms
2025-07-27 19:32:17.734 [info] Telemetry: {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":80,"breakdown":{"GlobalVirtualEnvs":0,"Locators":60,"Path":79,"Workspaces":19},"locators":{"Conda":60,"Homebrew":0,"LinuxGlobal":57,"PipEnv":0,"Pixi":0,"Poetry":5,"PyEnv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
2025-07-27 19:32:17.775 [info] Discovered env: /home/user/.pixi/envs/python/bin/python
2025-07-27 19:32:17.775 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.776 [warning] Unable to find conda package Python in "/home/user/.pixi/envs/python", trying slower approach
2025-07-27 19:32:17.778 [info] Discovered env: /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.778 [error] Unable to find Conda Manager for env: CondaEnvironment { prefix: "/home/user/.pixi/envs/python", executable: Some("/home/user/.pixi/envs/python/bin/python"), version: Some("3.13.5"), conda_dir: None, arch: None }
2025-07-27 19:32:17.785 [info] Discovered env: /usr/bin/python3
2025-07-27 19:32:17.788 [info] Discovered env: /bin/python3
2025-07-27 19:32:17.808 [info] Locator Conda took 47.461515ms
2025-07-27 19:32:17.808 [info] Locator Homebrew took 688.561µs
2025-07-27 19:32:17.808 [info] Locator LinuxGlobal took 49.608911ms
2025-07-27 19:32:17.808 [info] Locator PipEnv took 278.176µs
2025-07-27 19:32:17.808 [info] Locator Pixi took 44.419µs
2025-07-27 19:32:17.809 [info] Locator Poetry took 4.314067ms
2025-07-27 19:32:17.809 [info] Locator PyEnv took 129.625µs
2025-07-27 19:32:17.809 [info] Locator Venv took 64.323µs
2025-07-27 19:32:17.809 [info] Locator VirtualEnv took 242.487µs
2025-07-27 19:32:17.809 [info] Locator VirtualEnvWrapper took 37.644µs
2025-07-27 19:32:17.809 [info] Locator GlobalVirtualEnvs took 117.332µs
2025-07-27 19:32:17.809 [info] Locator Locators took 52.837442ms
2025-07-27 19:32:17.809 [info] Locator Path took 72.293278ms
2025-07-27 19:32:17.809 [info] Locator Workspaces took 10.194734ms
2025-07-27 19:32:17.810 [info] Pyenv not found, turning off pyenv features.
2025-07-27 19:32:17.814 [info] Telemetry: {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":72,"breakdown":{"GlobalVirtualEnvs":0,"Locators":52,"Path":72,"Workspaces":10},"locators":{"Conda":47,"Homebrew":0,"LinuxGlobal":49,"PipEnv":0,"Pixi":0,"Poetry":4,"PyEnv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
2025-07-27 19:32:17.815 [warning] Unable to find conda package Python in "/home/user/project-folder/.pixi/envs/default", trying slower approach
2025-07-27 19:32:17.817 [info] Discovered env: /home/user/project-folder/.pixi/envs/default/bin/python
2025-07-27 19:32:17.818 [info] Locator GlobalVirtualEnvs took 1.467µs
2025-07-27 19:32:17.819 [info] Locator Locators took 2.864µs
2025-07-27 19:32:17.819 [info] Locator Path took 1.955µs
2025-07-27 19:32:17.819 [info] Locator Workspaces took 3.424644ms
2025-07-27 19:32:17.828 [info] Python API: Changed environment from undefined to Python 3.13.5 for: /home/user/project-folder
2025-07-27 19:32:17.828 [info] Internal: Changed environment from undefined to Python 3.13.5 for: /home/user/project-folder
2025-07-27 19:32:17.829 [info] Telemetry: {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":3,"breakdown":{"GlobalVirtualEnvs":0,"Locators":0,"Path":0,"Workspaces":3},"locators":{}}}}
Terminal commands pasted automatically by VS Code for new terminal
~/project-folder ‹default*›
╰─➤ source activate
source: no such file or directory: activate
╭─~/project-folder ‹default*›
╰─➤ conda activate python
zsh: command not found: conda Extension version: 1.1.12072328
VS Code version: Code 1.102.2 (c306e94f98122556ca081f527b466015e1bc37b0, 2025-07-22T12:15:48.520Z)
OS version: Linux x64 6.14.0-24-generic
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 7 5700U with Radeon Graphics (16 x 1974) |
| GPU Status | 2d_canvas: enabled 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: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off webnn: disabled_off |
| Load (avg) | 1, 2, 2 |
| Memory (System) | 13.51GB (7.50GB free) |
| Process Argv | --crash-reporter-id d1462e6e-1aff-49e2-8a0d-f6f5c87de28d |
| Screen Reader | no |
| VM | 0% |
| DESKTOP_SESSION | plasmawayland |
| XDG_CURRENT_DESKTOP | KDE |
| XDG_SESSION_DESKTOP | KDE |
| XDG_SESSION_TYPE | wayland |
A/B Experiments
vsliv368:30146709
vswsl492:30256859
binariesv615:30325510
h48ei257:31000450
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
pylancequickfixf:31350060
9d2cg352:31346308
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
nes-diff-11:31337487
replacestringexc:31350595
nes-set-on:31351930
6abeh943:31336334
yijiwantestdri0626-t:31336930
0927b901:31350571
f76d9909:31348711
45650338:31354155
0cj2b977:31352657
Metadata
Metadata
Assignees
Labels
info-neededIssue requires more information from posterIssue requires more information from poster