Skip to content

Add native Pixi locator - #24442

Merged
Karthik Nadig (karthiknadig) merged 2 commits into
microsoft:mainfrom
renan-r-santos:add-pet-pixi
Nov 26, 2024
Merged

Karthik Nadig (karthiknadig) merged 2 commits into
microsoft:mainfrom
renan-r-santos:add-pet-pixi

Conversation

@renan-r-santos

Copy link
Copy Markdown

Sister PR (needs to be merged first):

Comment thread src/client/telemetry/index.ts Resolved
@karthiknadig Karthik Nadig (karthiknadig) added feature-request Request for new features or functionality skip tests Updates to tests unnecessary labels Nov 18, 2024
@karthiknadig

Copy link
Copy Markdown
Member

This actually might need some additional handling. If pixi isn't available this needs to fall back to conda.

@renan-r-santos

Copy link
Copy Markdown
Author

This actually might need some additional handling. If pixi isn't available this needs to fall back to conda.

I'm not sure I understand what you're suggesting here. Do you mean that if the pixi tool isn't available for VSCode to invoke, for example, when using python.terminal.activateEnvironment": true, VSCode should fallback to using conda? If so, I don't think that would work as, AFAIK, conda can't manage or activate pixi environments.

@karthiknadig

Copy link
Copy Markdown
Member

I see. It wasn't clear to me, and I assumed that pixi managed envs were also conda manageable. Then this seems ok.

@ruben-arts

Copy link
Copy Markdown

Fly-by explanation from pixi maintainer:

AFAIK, conda can't manage or activate pixi environments.

While some users might use it like that it's not a promised feature and will definitely not work with the manifest (pixi.toml). Pixi creates Conda environments, this is not to be confused with the conda tool. The conda tool can understand the pixi created Conda environment, and thus act on it but that is not a recommended workflow.

You can see this workflow as "hacky" and the extension should therefor not support it.

@karthiknadig
Karthik Nadig (karthiknadig) merged commit 4f7165f into microsoft:main Nov 26, 2024
Karthik Nadig (karthiknadig) pushed a commit to microsoft/python-environment-tools that referenced this pull request Dec 9, 2024
Fixes #46

I'd like to reopen the discussion about adding support for Pixi given
the community interest after the above issue was closed and to bring
feature parity with the `js` locator.
Because Pixi environments have a unique directory layout, the proposed
solution is simple enough that it doesn't need any process spawning.

Sister PR:
- microsoft/vscode-python#24442
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality skip tests Updates to tests unnecessary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants