I had the same problem and changing the python language server from Jedi to Microsoft or Pylance did fix the problem. To do this go to the settings with Cntrl + , and search for python.languageserver

Answer from Bart on Stack Overflow
🌐
GitHub
github.com › microsoft › vscode-python › issues › 5425
Go to definition not working anymore · Issue #5425 · microsoft/vscode-python
April 23, 2019 - So maybe there is some issue with only "Go to Definition". Also one more thing if you've written function in same class and use self.method_name() then it will able to navigate to the method · Tried to reinstall the python extension (ms-python.python) >> Not worked
Author: microsoft
Discussions

Ctrl + Click go to definition not working.
Does F12 work? I think that behavior might be related to the specific file type, or associated Extension. More on reddit.com
🌐 r/vscode
7
3
January 26, 2022
'Go to definition' not working
Environment data VS Code version: 1.31.1 Extension version (available under the Extensions sidebar): 2019.3.6558 OS and version: macOS Mojave 10.14.4 Python version (& distribution if applicabl... More on github.com
🌐 github.com
5
April 11, 2019
Go to definition not working: "No definition found for 'function'"
Environment data VS Code version: 1.55.2 Extension version (available under the Extensions sidebar): v2021.4.765268190 OS and version: Arch Linux Python version (& distribution if applicable, e... More on github.com
🌐 github.com
4
April 27, 2021
Go to definition stopped working
Type: Bug Go to definition stopped working. VS Code version: Code 1.83.1 (f1b07bd, 2023-10-10T23:48:05.904Z) OS version: Windows_NT x64 10.0.22621 Modes: System Info Item Value CPUs 12th Gen Intel(... More on github.com
🌐 github.com
7
October 30, 2023
🌐
Luxiyalu
luxiyalu.com › python-vscode-go-to-definition-doesnt-work
Python + VSCode: “Go to Definition” Doesn’t Work? | Have Fun Learning
Make sure that you have Microsoft’s Python extension installed. If you need more than one paths, simply create a .env file in project root path, and add extra paths in, separated by :, as such: ... VSCode will know to look for definitions under these paths. If it still doesn’t work, or doesn’t work all the time, it’s very likely that one of the other plugins that you have is interfering with the Python one.
🌐
GitHub
github.com › microsoft › vscode-python › issues › 5199
'Go to definition' not working · Issue #5199 · microsoft/vscode-python
April 11, 2019 - Relevant/affected Python packages and their versions: None · There is 'go to definition' in short cut menu, and press shortcut key defined in Visual Studio Code can lead to expected position.
Author: microsoft
🌐
GitHub
github.com › microsoft › vscode-python › issues › 16057
Go to definition not working: "No definition found for 'function'" · Issue #16057 · microsoft/vscode-python
April 27, 2021 - Value of the python.languageServer setting: JediLSP · On Ctrl+click (or F12) on any function, class, variable,... go to the definition.
Author: microsoft
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode › issues › 196989
Go to definition stopped working · Issue #196989 · microsoft/vscode
October 30, 2023 - Type: Bug Go to definition stopped working. VS Code version: Code 1.83.1 (f1b07bd, 2023-10-10T23:48:05.904Z) OS version: Windows_NT x64 10.0.22621 Modes: System Info Item Value CPUs 12th Gen Intel(R) Core(TM) i7-1255U (12 x 2611) GPU Sta...
Author: microsoft
🌐
GitHub
github.com › microsoft › vscode-python › issues › 5963
"Go To Definition" not working as expected. · Issue #5963 · microsoft/vscode-python
June 10, 2019 - Coming from PyCharm, Go to Defintion is not working as expected. Usually going to package root works - but not functions or constants etc. When it does work it just takes me to __init__.py of the p...
Author: microsoft
🌐
GitHub
github.com › microsoft › vscode-python › issues › 9621
vscode go to definition not working for python · Issue #9621 · microsoft/vscode-python GitHub
January 16, 2020 - VSC version : code_1.41.1-1576681836_amd64.deb ubuntu : 18.04 when i use F12 or click the 'go to definition button' in the menu, nothing happened... actually i have another machine with the same VS...
Author: microsoft
🌐
GitHub
github.com › microsoft › vscode › issues › 123365
go to definition ....loading,and not working · Issue #123365 · microsoft/vscode
May 8, 2021 - I have installed the newest version of vscode-python from https://github.com/microsoft/vscode-python. In some project, It works well when i right click and go to definiton.But after i used sometimes, this does not work well.
Author: microsoft
🌐
GitHub
github.com › Microsoft › vscode-python › issues › 571
Go to definition not working · Issue #571 · microsoft/vscode-python
January 11, 2018 - Environment data VS Code version: 1.19.2 Python Extension version: 0.9.1 Python Version: 3.6.4 OS and version: Mac 10.12.6 Actual behavior Built-in module can not go to definition like: can not go ...
Author: microsoft
🌐
GitHub
github.com › microsoft › vscode-python › issues › 22625
"Go to definition" does not work. Duplicate, but the previous question has been closed. · Issue #5241 · microsoft/pylance-release
December 11, 2023 - Same issue, but the answers don't solve the problem for me: https://stackoverflow.com/questions/64255834/no-definition-found-for-function-vscode-python (Switching python.languageserver to Jedi or Pylance did not help.) The problem occured today for the first time. I have tried restarting, have not tried re-installing. I have enabled github copilot today for the first time, so one guess is that this caused the issue. I also get another warning (but I got that before): The git repository at ...
Author: microsoft
🌐
YouTube
youtube.com › bir grewal
Fix: VS Code Go to Definition Not Working - YouTube
Visual Studio Code (VS Code) is a very popular code editor among the developers of the world. This is due to it's awesome and unique features, and one such f...
Published: December 21, 2021
Views: 32K
🌐
GitHub
github.com › microsoft › vscode-python › issues › 3129
Go to definition does not work. · Issue #3129 · microsoft/vscode-python
November 2, 2018 - Python version (& distribution if applicable, e.g. Anaconda): 2.7.15 64bit anaconda · Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda · Go to definition does not work.
Author: microsoft
🌐
GitHub
github.com › Microsoft › vscode › issues › 65914
VSCode no longer showing Go To Definition on right click. · Issue #65914 · microsoft/vscode
January 2, 2019 - After the above steps happening my VSCode no longer shows the 'Go To Definition' option in the right click. I have jedi disabled, and tried re-enabling it as well. I attempted to remake the project, also to no avail. It seems that it's not recognizing the ability to even display 'Go To Definition'. I have checked all the forum posts for python and other languages on why 'Go To Definition' isn't working, in this case it's simply not showing at all.
Author: microsoft
🌐
Developer Community
developercommunity.visualstudio.com › t › Go-to-definition-doesnt-work › 10729503
Go to definition doesn't work
September 6, 2024 - Skip to main content · Visual Studio · Guidelines Problems Suggestions Code of Conduct · Downloads · Visual Studio IDE Visual Studio Code Azure DevOps Team Foundation Server Accounts and Subscriptions · Subscriber Access · Microsoft Security Azure Dynamics 365 Microsoft 365 Microsoft ...