You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following this issue #3898, I'm trying to understand how to make pylance see local packages installed with uv add --editable. The package itself works fine, it's just the vscode/pylance static analysis that cannot find the package.
I also tried including that setting in the package's pyproject.toml to no effect.
I understand there's some turmoil generally caused by PEP660 microsoft/pylance-release#3473 but as far as I understand uv is supposed to be PEP660 compatible? Is this still an upstream issue? Or am I doing something wrong?
Platform
Linux 5.14.0-427.33.1.el9_4.x86_64 x86_64 GNU/Linux
Version
uv 0.5.31
Python version
python 3.12.7
The text was updated successfully, but these errors were encountered:
PEP 660 is very unopinionated about how the editable installation works. uv is PEP 660 compatible, it installs whatever the build backend gives it, and this layout is a decision made by setuptools (pypa/setuptools#3518). uv can't really do anything here, it has to respect what the build backend does. One option is to switch to different build backend with a different editable behavior.
konstin
added
question
Asking for clarification or support
external
The problem is with another package or dependency (not uv)
and removed
bug
Something isn't working
labels
Feb 13, 2025
I'm not sure what I did but pylance started to find it suddenly after I edited my package. I'm pretty confused, but it does seem to work, just maybe not super reliably.
You might just need to restart Pylance or something after installing.
Summary
Following this issue #3898, I'm trying to understand how to make pylance see local packages installed with
uv add --editable
. The package itself works fine, it's just the vscode/pylance static analysis that cannot find the package.I have the current setting in my pyproject.toml:
I also tried including that setting in the package's pyproject.toml to no effect.
I understand there's some turmoil generally caused by PEP660 microsoft/pylance-release#3473 but as far as I understand uv is supposed to be PEP660 compatible? Is this still an upstream issue? Or am I doing something wrong?
Platform
Linux 5.14.0-427.33.1.el9_4.x86_64 x86_64 GNU/Linux
Version
uv 0.5.31
Python version
python 3.12.7
The text was updated successfully, but these errors were encountered: