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
I have an editable pip package in my project directory, which I installed by cloning a package from GitHub and running pip install --no-deps -e . from inside my-project/my-package.
Here are the relevant paths in the pip show my-package output:
I am currently editing the package in my-project/my-package and simultaneously using it in other parts of my code in my-project, and when I ctrl+click on an object, I want to be taken to its definition inside of my-project/my-package so that I can continue working on it. Instead, Pylance takes me to the installed package location at <...>/my-project/venv/lib/python3.12/site-packages. How can I avoid this? I keep editing it by accident while I'm working and it has no effect, it would be great if the shortcut could take me to the editable location.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an editable pip package in my project directory, which I installed by cloning a package from GitHub and running
pip install --no-deps -e .
from insidemy-project/my-package
.Here are the relevant paths in the
pip show my-package
output:I am currently editing the package in
my-project/my-package
and simultaneously using it in other parts of my code inmy-project
, and when I ctrl+click on an object, I want to be taken to its definition inside ofmy-project/my-package
so that I can continue working on it. Instead, Pylance takes me to the installed package location at<...>/my-project/venv/lib/python3.12/site-packages
. How can I avoid this? I keep editing it by accident while I'm working and it has no effect, it would be great if the shortcut could take me to the editable location.Beta Was this translation helpful? Give feedback.
All reactions