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

Pixi editable pypi packages aren't visible to VSCode Pylance #1633

Closed
2 tasks done
kcajf opened this issue Jul 18, 2024 · 7 comments
Closed
2 tasks done

Pixi editable pypi packages aren't visible to VSCode Pylance #1633

kcajf opened this issue Jul 18, 2024 · 7 comments
Labels
🐞 bug Something isn't working

Comments

@kcajf
Copy link

kcajf commented Jul 18, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

install a pixi editable module, set the python interpreter in VSCode to the pixi interpreter, and try to import the editable module. VSCode won't be able to find it (i.e. go-to-definition won't work).

Issue description

microsoft/pylance-release#3473

I think this issue explains the problem. It doesn't look like pixi installs editable dependencies in a way that pylance (and it seems like a few other tools) understands.

Expected behavior

Pip has a config setting for this. Not sure if something similar would be suitable for pixi?

@kcajf kcajf added the 🐞 bug Something isn't working label Jul 18, 2024
@olivier-lacroix
Copy link
Contributor

@tdejager this may be a good reason to switch the default build backend to hatchling? what do you think?

@olivier-lacroix
Copy link
Contributor

Looks like hatch is not enough. See microsoft/pylance-release#6218

@Hofer-Julian
Copy link
Contributor

Looks like hatch is not enough. See microsoft/pylance-release#6218

This pylance issue is closed now, does this mean we can close this one as well?

@olivier-lacroix
Copy link
Contributor

It seems to be a bit hit and miss. It works for some people in our team, and for some days… making it hard to understand what is happening.

@ruben-arts
Copy link
Contributor

Closing for now, reopen if we've got a more concrete reproducible situation.

@kcajf
Copy link
Author

kcajf commented Sep 30, 2024

This is still a problem for me.

@oliver-batchelor
Copy link

I'm just getting into pixi now and having the same problem, I used to have to install my ediable packages with "editable_mode=compat" to make this work.

I have the pixi environment selected, all seems well but the local packages aren't recognised like before?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants