‘Go To Definition’ Issues

Having the same issue here with python development via SSH. Its very furstrating

Version: 1.0.0 (user setup)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:44:25.253Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

work with python,

Version: 1.0.0 (user setup)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:44:25.253Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Posting in case this helps anyone. I had the same issue with C/C++ code after migrating to a new (raspberry pi) dev server. Syntax highlighting was very basic, and all of the context sensitive/Intellisense features were gone. The right click menu did not show ‘go to definition’ and F12 did nothing.

My issue was that I did not have the clangd language server installed. I believe this is needed for the C/C++ extension from Cursor. If you’re having this problem it might be worth checking with:

which clangd

You should see something like /usr/bin/clangd

If you don’t, you can install by following the instructions at Getting started

For Rpi, Debian/Ubuntu:

sudo apt search clangd

As of writing, clangd-19 is the latest.

sudo apt install clangd-19

You will need to point ‘clangd’ to ‘clangd-19’ still.

sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-19 100

After that, I was able to reload cursor and the Intellisense style features started working again, including syntax highlighting and go to definition.

1 Like

How I Solved the Problem

I use C/C++ on Windows, and initially, the “Go to Definition” feature wasn’t working in Cursor.

I tried reinstalling Cursor, which involved completely removing the program and deleting the folders %APPDATA%\Code and %USERPROFILE%\.vscode.

It turned out I hadn’t noticed that clangd failed to install. Here’s how I fixed it:

  1. Downloaded “clangd-windows-X.zip” from LINK .
  2. Unpacked it to C:\clangd_20.1.0.
  3. Added C:\clangd_20.1.0\bin to my user environment variables in Windows.
  4. I reloaded the cursor, and intellisense immediately started working correctly.
    And also, the “Go to definition” item appeared and the ctrl + click combination began to work!

Go to Definition/Declaration/Type Definition still not working for me in Cursor 1.2.4 for Python code:

In my case, Account is class provided by a third party library.

This is definitely starting to become a nuisance and reduces the productivity gains from using Cursor’s AI features in the first place if I have to manually navigate to files/classes that I want to take a look at.

Cursor version info:

Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:55:16.443Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
1 Like

Hi @tylermilner, could you check that you have the “Anysphere Python” extension installed, and that the interpreter for the workspace is correctly set?


1 Like

For me, the question happened in a more interesting way. I used the same cursor to ssh two servers, same project. It works on one and not in another.LOL

Hi @ravirahman, I installed the Anysphere Python extension (it wasn’t installed before). It had me uninstall a conflicting extension and restart Cursor, but it didn’t seem to fix the issue.

I do have the correct Python interpreter selected (manually set to the python binary/symlink in my project’s .venv):

For what it’s worth, I don’t think this is a Cursor-specific issue. I also encounter the same “no definition found” problem in VS Code.

Had this same issue - For C/C++ I installed the Anysphere C/C++ Extension, which prompted me to disable some existing extensions (I clicked the allow prompts), and now it works

I have the same problem with C#. It works on Blazor components. Another thing is that on my home computer where the installation has been there for over a month, it works. At work with a new installation, it doesn’t work. Both have the same version.

Not working
Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
Electron: 34.5.1Chromium: 132.0.6834.210
Node.js: 20.19.0V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Working
Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

also having this same issue. in fact, i’ve had it since i’ve switched to cursor (for months now). i always thought to myself “this has to be resolved any day now, it’s not possible they don’t do anything about this for any longer”.

i see here many people have the same problem. this is infuriating, it makes working with cursor such a chore. why isn’t this working?? i’m thinking about moving back to intellij. this really can’t be so hard to fix?!?!?!

PLEASE!!!

Version: 1.3.9 (Universal)
VSCode Version: 1.99.3
Commit: 54c27320fab08c9f5dd5873f07fca101f7a3e070
Date: 2025-08-01T20:27:38.378Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
lang: JS/Vue

I’m also having this issue, to check one thing I opened the same folder with vs code (so should use same settings.json) and go to definition working in that case with same virtual environment

I’m facing the same issue, on Ubuntu 24.04! with c++ code
tried deleting the

  • executable
  • ~/.cursor
  • ~/.config/Cursor

I have clangd and c/c++ extensions installed
and if I try to ctrl+click or right_click→go_to_definition it always jumps to the namespace definition!

@sina, the Anysphere C/C++ extension relies on Clangd for the language server, which needs to be configured via a compile_commands.json (the build tool, such as CMake, can generate this file). Please see Intellisense disabled in new C++ extension and the Clangd Getting Started Guide for more on configuring Clangd.

Version: 1.6.26 (Universal)
VSCode Version: 1.99.3
Commit: 6af2d906e8ca91654dd7c4224a73ef17900ad730
Date: 2025-09-16T17:12:31.697Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

long time passed and the problem is still exists. In my case with JS/TS/Vue. It happens right after launching Cursor, or some time after.

Does anyone have a solution?
Does Cursor want to do something about it?

The “Go to Definition” feature is not working when I hover or place the cursor on a symbol. This is really frustrating and exhausting.

Node.js + Express.js (CommonJS)

  1. MacBook Pro

  2. macOS 15.6.1 (24G90)

    Version: 1.6.45 (Universal)

VSCode Version: 1.99.3

Commit: 3ccce8f55d8cca49f6d28b491a844c699b8719a0

Date: 2025-09-22T18:22:38.013Z (3 days ago)

Electron: 34.5.8

Chromium: 132.0.6834.210

Node.js: 20.19.1

V8: 13.2.152.41-electron.0

OS: Darwin arm64 24.6.0