Skip to content

Pixi VSCode extension #166

Closed
Closed

Description

@pavelzw

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.

Activity

  1. pavelzw commented on Jul 2, 2023

    @pavelzw
    CollaboratorAuthor

    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.

  2. ruben-arts commented on Jul 3, 2023

    @ruben-arts
    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!

  3. added
    help wanted
    on Jul 3, 2023
  4. pavelzw commented on Jul 3, 2023

    @pavelzw
    CollaboratorAuthor

    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

  5. pavelzw commented on Jul 12, 2023

    @pavelzw
    CollaboratorAuthor

    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

  6. pavelzw commented on Oct 9, 2023

    @pavelzw
    CollaboratorAuthor

    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

  7. Wumpf commented on Oct 24, 2023

    @Wumpf

    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 :))

  8. locked and limited conversation to collaborators on Oct 26, 2023
  9. converted this issue into a discussion #415 on Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions