Cmd+click, "Go to Function Definition" functionality?

The expected behavior of clicking a function in the editor should take one to the function definition, as this is how it works in Visual Studio Code. What’s going on?

4 Likes

Hmm, it’s working on my side. Does the F12 “Go to Definition” shortcut also not work for you?

It’s been broken for me since yesterday too. I have been switched back to vscode hoping for a fix. F12 shortcut is broken as well.

Broken for me as well, F12 not working too.
And “go to definition” is not in the right click context menu as it is in VSCode.

2 Likes

Same here! Just installed cursor today and not sure why this doesn’t work. Here is my current version:

Version: 0.35.0
VSCode Version: 1.89.1
Commit: 5f9353ed8be369c4ac2b4d43596f5ff281746ec0
Date: 2024-06-08T04:53:54.048Z
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.5.0

Up! This is a huge issue! Happening with python code. The F12 “Go to Definition” does not work either!

3 Likes

Is there any fix for this issue? Seems other users have been experiencing this recently.

UPDATE: For anyone else having this issue, it seems to be an issue when using a VPN. Opening up the app without VPN seems to load extensions properly and allows you to cmd+click on files.

1 Like

This issue persists. I downloaded 1st August.

Same for me. Just downloaded too:

Version: 0.38.1
VSCode Version: 1.91.1
Commit: 39ded7305e8d625076ebbbf98510c53152232660
Date: 2024-07-25T20:18:41.490Z
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.3.0

Weird, it works here, exact same versions as you but on Windows11. But people are not even saying in which language they are seeing the issue. In my case I only do js / ts and it works.

Version: 0.38.1
VSCode Version: 1.91.1
Commit: 39ded7305e8d625076ebbbf98510c53152232660
Date: 2024-07-25T20:18:41.490Z
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22000

For me it’s python. I uninstalled all Extensions and now it works again. Still have to figure out which extension breaks the funcitonality.

1 Like

For me, it’s “Python Debugger”.

  1. I switched to pre-released version
  2. restart extension

:white_check_mark::sparkles:Hey guys, I encountered the same issue when coding Python. And I have solved it by uninstall Pylance extention.

3 Likes

I still have the problem with Python. disabling pylance and/or cursor pyright doesn’t resolve the issue. Any fix?

1 Like

Also, try uninstalling these two extension:

Then restart

Install “Python” and “Pylance” extensions. Now it is working. This will set your python language server to pylance. And enable that.

1 Like

No it does not work. CMD+CLICK constantly stops working for me after an hour or so. Only restart of the Cursor fixes it.

1 Like

I’m having the same trouble. Even on Javascript / Typescript projects, there is no right click / Go To Definition and there is no F12 functionality in cursor. Only in vscode.

I thought this functionality was built-in. Could I be missing an extension?

In fact, in the Outline section on the left sidebar, it says “No symbols found in document”