Skip to content
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

Improve the Python experience on VSCode #2444

Open
ruben-arts opened this issue Nov 9, 2024 · 2 comments
Open

Improve the Python experience on VSCode #2444

ruben-arts opened this issue Nov 9, 2024 · 2 comments

Comments

@ruben-arts
Copy link
Contributor

There are notable issues with the experience in VsCode which should be fixed.

This is going to be a tracking issue.

@bollwyvl
Copy link
Contributor

Anecdotally, pixi run -e env-with-python code . works like a champ. On some projects, env-with-python needs some preflight, so I actually make a task for code (and/or whatever IDEs a team uses) and env for it that includes all the dependencies a python language server might care for (e.g. test, lint, etc.) but without any tasks to make the CLI UX awful.

Without knowing more, before diving head-first into the vscode walled garden, please consider whether pixi (or an optional pixi-ls) could improve the experience for vscode and other language server clients by implementing features in a Language Server, not solely in a vscode extension.

For example: when editing a package.json, one gets helpful completions of npm package names and version specs, respecting the local package manager settings for private repos. In pixi.toml (with taplo and e.g. even better toml), there is no such help. Other things that taplo can't quite do: making a depends-on on a non-existent task, or an env with against a missing feature.

The pixi-in-pyproject.toml experience is... pretty hard to use... indeed, next to schema/manifest/schema.json, a schema/pyproject/schema.json which wrapped the schema (and its deviations from pixi.toml) under [tool.pixi] and then getting that in the schema store (buh) would be helpful.

@joao-pm-santos96
Copy link

Anecdotally, pixi run -e env-with-python code . works like a champ

Incredibly, this was the solution I was searching for hours. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants