[Python] code navigation not working in vscode python

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

  1. Stack

    Stack Membro Participativo

    Switched to visualcode(Version: 1.53.1) recently for Python(2.7.5 is the interpreter). Set up remote-ssh(localclient - OSX and remote machine - CentOS 7) and i am able to write and execute code without issues. It's a pretty big code base and the directory structure looks like below. I tried opening both src/ and main/ but the "Go to Definition" or "Go to references" would not work - it just says "Nothing is found".

    It works if its under the same directory for some cases - for example the reference and definition in d22 might only be listed when i am searching in d22 but that does not work always either.

    src

    • main
      • d1
      • d2
        • d22

    Tried the following but nothing is helping:

    • Uninstalled all extensions except standard Python extension
    • Reinstalled Visual Code
    • Have set {{fs.inotify.max_user_watches = 524288}} and reloaded the conf since it initially showed too many files error.
    • Closed vscode and opened it multiple times.

    I also want to know if we have something like Kite that will work over remote ssh.

    Continue reading...

Compartilhe esta Página