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
{{ message }}
Repository navigation
VS Code Pixi env selection passes decorated label to --environment, causing parse failure #50
Selecting a Pixi environment in VS Code fails because the extension passes a decorated display label (including :default and Python version) into the CLI --environment argument, instead of the raw Pixi environment name.
Reproducible error
From Pixi Code output (repeated on 2026-09-08):
Failed to run "pixi list --no-install --frozen --json --environment "compneuro:default (3.12.14)""
Error: Cannot resolve tree item for element 0/0:compneuro/0:Python 3.14 (64-bit) from extension ms-python.vscode-python-envs
Expected behavior
The extension should pass only the canonical env name (e.g., compneuro) to --environment.
Actual behavior
The extension appears to pass a UI label string:
compneuro (env name)
:default (marker)
(3.12.14) (version metadata)
So CLI receives: --environment "compneuro:default (3.12.14)" which Pixi rejects.
Additional correlated errors
At the same time, VS Code logs repeatedly show:
'Error: Cannot resolve tree item for element 0/0:compneuro/0:Python 3.14 (64-bit) from extension ms-python.vscode-python-envs'
This may indicate environment-label handling/parsing issues across the env provider/selector boundary.
Steps to reproduce
Open workspace with Pixi env compneuro.
In VS Code, select the Pixi env from interpreter/environment picker.
Duplicate of #47. I added a #48 as an attempt to fix this, but you have to compile and install the extension yourself as this extension's development seems to be inactive.
Activity
dakoop commentedon Sep 14, 2026
Duplicate of #47. I added a #48 as an attempt to fix this, but you have to compile and install the extension yourself as this extension's development seems to be inactive.