[Python] "Go to Definition" for local package installed in environment does not open file in...

Discussão em 'Python' iniciado por Stack, Maio 28, 2025.

  1. Stack

    Stack Membro Participativo

    I have installed a local python package via pip install -e . into my current conda environment. Within the package, I import functions from other submodules via an absolute import, i.e. from my_package.submodule import some_function.

    Using the Go to Definition command brings me to the correct file and function, however, it opens the file as if it were not in the current workspace. Even if the target file is open in the workspace already, it will open a clone. The main issue with this is the lack of version control indications in this file, which is shown as if it was not part of the workspace.

    Is there a way to avoid opening these duplicate files?

    Continue reading...

Compartilhe esta Página