Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Pixi VSCode extension #166

Closed
pavelzw opened this issue Jul 2, 2023 · 6 comments
Closed

Pixi VSCode extension #166

pavelzw opened this issue Jul 2, 2023 · 6 comments
Labels
🆘 help wanted Maintainers would like community input

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Jul 2, 2023

I think a Pixi VSCode extension that automatically sets your python interpreter if python is in the environment (and maybe also has some other features) would be awesome.

@pavelzw
Copy link
Contributor Author

pavelzw commented Jul 2, 2023

There is the possibility to choose <path-to-project>/.pixi/env/bin/python3.11 as python interpreter but VSCode automatically recognizes it as a conda python and tries to run conda activate <path-to-project>/slim-trees/.pixi/env on startup.

@ruben-arts
Copy link
Contributor

@pavelzw that would be really nice indeed! What other features would that include? We don't have a lot of experience with write plugins for IDE's so any input would be welcome!

@ruben-arts ruben-arts added the 🆘 help wanted Maintainers would like community input label Jul 3, 2023
@pavelzw
Copy link
Contributor Author

pavelzw commented Jul 3, 2023

Maybe some tooltips in the pixi.toml?

I could also imagine people wanting to execute pixi commands using this thing (I don't know what it's called 😅)

image

Maybe also on the side bar an overview of installed packages

@pavelzw
Copy link
Contributor Author

pavelzw commented Jul 12, 2023

Also having something like this button in the pixi.toml would be great

image

Also, you can hover in vscode over dependencies in the package.json to get some package metadata (and the newest version). I think that would also be nice for the pixi.toml

@pavelzw
Copy link
Contributor Author

pavelzw commented Oct 9, 2023

Another issue I stumbled on while using pixi with VSCode is that VSCode tries to automatically activate the conda environment.

source activate
source: no such file or directory: activate
❯ conda activate <path-to-project>/.pixi/env
zsh: command not found: conda

The solution is to uncheck this box.
image

@Wumpf
Copy link

Wumpf commented Oct 24, 2023

I could also imagine people wanting to execute pixi commands using this thing (I don't know what it's called 😅)

Not having a lot of experience either, but I believe this would be a Task Provider:
https://code.visualstudio.com/api/extension-guides/task-provider

(and yes this would be great to have :))

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🆘 help wanted Maintainers would like community input
Projects
None yet
Development

No branches or pull requests

3 participants