Go to definition not working

Hi.

I found that the latest version of Cursor cannot use the ‘Go to Definition’ feature, and I think this is a huge bug. This has turned Cursor from an IDE into just a text editor. Previously, I uninstalled VSCode because I thought Cursor could fully replace it. For example, I could right-click on a class object and easily jump to its definition or the implementation in other classes. Now, Cursor is basically just a text editor. Aside from being able to use Ctrl+L for quick AI interactions, I can’t seem to find any other advantages of Cursor.

2 Likes

Hey, which programming language do you use?

Hi.

C/C++

I just checked, and everything is working for me. Which version of Cursor are you using?

版本: 0.44.11
提交: 1.93.1
日期: fe574d0820377383143b2ea26aa6ae28b3425220
Electron: 2025-01-03T07:59:06.361Z
ElectronBuildId: 30.5.1
Chromium: undefined
Node.js: 124.0.6367.243
V8: 20.16.0
OS: 12.4.254.20-electron.0

What if you try reinstalling the C/C++ extension and see if that solves the problem?

I tried, but the problem was not resolved. I am ready to reinstall the Windows system to give it a try.

No need to be so categorical, save your time :blush:. To start, try reinstalling Cursor by following this guide:

I reinstalled Windows 10 on a virtual machine, and then installed Cursor in the virtual machine, and Cursor is working fine.

I tried uninstalling Cursor and then reinstalling it, but the problem was not resolved. When I reinstalled Cursor, I found that it was already logged into my account, which indicates that some cache files of Cursor have not been cleared. The regular uninstall operation cannot completely and thoroughly remove Cursor.

I already gave you the guide, but I’ll repeat it here. You need to delete these folders:

Windows - Delete %APPDATA%\Cursor and %USERPROFILE%\.cursor

thanks :grinning:

any solution for mac?

3 Likes

Hello, I’m having the same issue, but for Typescript, on Mac.
There isn’t a Typescript extension though.
Any ideas?

Version: 0.48.9
VSCode Version: 1.96.2
Commit: 61e99179e4080fecf9d8b92c6e2e3e00fbfb53f0
Date: 2025-04-12T18:33:49.349Z (4 days ago)
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.4.0

‘Go To Definition’ is not working any more

This is going on for some time, and I had to restart the IDE every 30 minutes to get to work again, but after the update this morning it happens immediately as soon as the IDE start (after finishing ‘initializing jsconfig.json’)

If I disable all extension it doesn’t happen, but if I do Bisect, I get
Extension Bisect is done but no extension has been identified. This might be a problem with Cursor.

This makes Cursor absolutely useless for me

1 Like

Reinstall cursor seems to help, mac:

rm -rf ~/Library/Application\ Support/Cursor
rm -rf ~/Library/Caches/Cursor
rm -rf ~/Library/Saved\ Application\ State/com.cursor.editor.savedState
rm -rf ~/Library/Logs/Cursor

No it didn’t - after a minute I get


and the problem repeats

1 Like

same
Any solution new?

For python, you can try to follow the instruction to select the python interpreter, guess it may work in some other case.

Face the same issue for python. Tested the same project with vscode and pycharm, both works correctly. Only cursor cannot find any definition with the same virtual environment.