[Python] VS Code "go to definition" to another file in the workspace does not work

Discussão em 'Python' iniciado por Stack, Fevereiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    I've been using VS code, and out of sudden, "go to definition" does not work in my workspace.

    It can do "go to definition" when the definition is in the same file, but not in the same workspace. It used to work, so not really sure why.

    So far I tried,

    • Reinstalling vscode
    • Disabling and enabling all extensions
    • Clear cache and reload windows
    • Set python interpreter
    • Restart language server
    • F12 also does not work

    The code is working, so the import is correct, but seems like this "go to definition" is not finding it. I'm working in docker, but the same issue happens outside of docker too. Any help will be much appreciated. Thank you!

    Continue reading...

Compartilhe esta Página