Codebase indexing not working for me

Codebase indexing not working for me. No errors or anything. When I ask questions about codebase it just says something like “what the heck are you talking about”.

I click delete index and compute index and nada. Just takes under 1 sec to show the green line.

Tried this on multiple folders, same. My version is 0.41.3.
I have seen this version is working correctly for another friend…So I dont know what this is about.

1 Like

Hi @Ozzy1

Please share some details about your system and logs:

I have the same problems since months… nobody helps me… i sent emails and nobody answers.

Even although they are developing a great product, they need to care of their customers.

1 Like

Apple M1 Pro chip
Macos Sonoma 14.6.1
32gb ram

logs? I dont see any logs

Hi Alvaro777, did u already create a bug ticket? can u share the link with me?

Not who you were replying to, but

Sent one email, never got reply

@darink How did your call with the developer go ? I suppose they didnt follow up?

No, we didn’t call! But also it was one email sent out during a busy time.

I’m also not 1000% I’m still experiencing the issue, doc indexing is currenrly working but I have muscle memory to not try @ing folders or my codebase on macos now, got sick of troubleshooting.

I also face indexing error its just says “handshake failed” after some time of indexing

3 Likes

Same here. New to cursor but I am very disappointed. I tried multiple repo’s, typescript, javascript, rails, elixir and rust. All had the same indexing error, handshake failed.

This is my Cursor about:
Version: 0.41.3
VSCode Version: 1.91.1
Commit: 51c8aff7cb5a89f4a0e462fbacab938bdbfaf140
Date: 2024-09-25T17:13:50.377Z
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 24.0.0

I did several suggestions I found on the web. But nothing works.

Anybody an idea?

1 Like

What I found that it doesnt work on my mac, but works on my windows computer, although still not flawless (it is getting handshake failed error time to time)

Does anyone know how to check relevant cursor logs? this is so awkward, we are pushing to resolve the error although no one from cursor team is interested to resolve this :sweat_smile: This is a clear sign of a market that demands a strong team. Anyone want to join me to create an alternative to cursor? :slightly_smiling_face:

go to output (where the terminal is) and on the right side select the correct log, here Cursor Indexing & Retrievals

2 Likes

[error] Handshake failed:

2024-10-08 19:26:56.409 [error] Error: timeout in handshake with retry

at t.RepoClientMultiplexer.handshakeWithRetry (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:826553)

at async w.getServerStatus (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:841881)

at async w.startIndexingRepository (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:844181)

2024-10-08 19:26:56.410 [error] Handshake failed.

2024-10-08 19:26:56.410 [info] Indexing job successfully done or aborted.

2024-10-08 19:27:09.103 [info] Search by sha took 25.400332987308502ms for query “”

2024-10-08 19:27:09.104 [info] Search by message took 27.155041992664337ms for query “”

2024-10-08 19:27:09.109 [info] Search by sha took 20.853291988372803ms for query “”

2024-10-08 19:27:09.109 [info] Search by message took 22.00645798444748ms for query “”

2024-10-08 19:27:20.860 [info] Search by sha took 39.779541969299316ms for query “”

2024-10-08 19:27:20.861 [info] Search by message took 42.0927500128746ms for query “”

2024-10-08 19:27:20.861 [info] Search by sha took 36.21441596746445ms for query “”

2024-10-08 19:27:20.862 [info] Search by message took 37.591874957084656ms for query “”

2024-10-08 19:27:55.456 [info] Search by sha took 37.48741698265076ms for query “”

2024-10-08 19:27:55.456 [info] Search by sha took 31.151125013828278ms for query “”

2024-10-08 19:27:55.457 [info] Search by message took 40.44520801305771ms for query “”

2024-10-08 19:27:55.457 [info] Search by message took 33.43416702747345ms for query “”

2024-10-08 19:28:57.020 [info] Search by sha took 29.36741602420807ms for query “”

2024-10-08 19:28:57.021 [info] Search by message took 32.136500000953674ms for query “”

2024-10-08 19:30:24.902 [info] Search by sha took 30.60050004720688ms for query “”

Its a joke… Lex fridman interviewed them and the customer care is a complete shit…

2 Likes

I need solution:

024-10-08 12:51:48.763 [info] Repo client: syncing embeddings with backend: https://repo42.cursor.sh

2024-10-08 12:51:49.000 [info] Creating merkle client.

2024-10-08 12:51:49.000 [info] Done creating merkle client.

2024-10-08 12:51:49.000 [info] Doing a startup handshake.

2024-10-08 12:51:49.084 [error] Error: Command failed: git config --get remote.origin.url

‘git’ is not recognized as an internal or external command,

operable program or batch file.

at ChildProcess.exithandler (node:child_process:422:12)

at ChildProcess.emit (node:events:514:28)

at maybeClose (node:internal/child_process:1105:16)

at ChildProcess._handle.onexit (node:internal/child_process:305:5)

2024-10-08 12:51:49.392 [info] Finished initializing merkle tree in 391.82730000000447 ms.

2024-10-08 12:51:49.392 [info] Doing the initial handshake with hash: 3d6af43054f3b6db5ecfd923ad77a37ddb0bd138eff0ddf4dd040b20aec07db5

2024-10-08 12:51:49.394 [info] Handshake start

2024-10-08 12:51:51.448 [info] Repo client: syncing embeddings with backend: https://repo42.cursor.sh

2024-10-08 12:51:51.451 [info] Creating merkle client.

2024-10-08 12:51:51.451 [info] Done creating merkle client.

2024-10-08 12:51:51.451 [info] Doing a startup handshake.

2024-10-08 12:51:51.451 [info] Indexing job successfully done or aborted.

2024-10-08 12:51:51.561 [info] Finished initializing merkle tree in 110.35459999926388 ms.

2024-10-08 12:51:51.561 [info] Doing the initial handshake with hash: 3d6af43054f3b6db5ecfd923ad77a37ddb0bd138eff0ddf4dd040b20aec07db5

2024-10-08 12:51:51.563 [info] Handshake start

2024-10-08 12:51:55.575 [info] Handshake start

2024-10-08 12:52:03.594 [info] Handshake start

2024-10-08 12:52:19.598 [info] Handshake start

2024-10-08 12:52:45.700 [info] Handshake start

2024-10-08 12:53:27.803 [info] Handshake start

2024-10-08 12:54:41.897 [error] Handshake failed:

2024-10-08 12:54:41.902 [error] Error: timeout in handshake with retry

at t.RepoClientMultiplexer.handshakeWithRetry (c:\Users\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:2:826553)

at async w.getServerStatus (c:\Users\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:2:841881)

at async w.startIndexingRepository (c:\Users\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:2:844181)

2024-10-08 12:54:41.903 [error] Handshake failed.

2024-10-08 12:54:41.903 [info] Indexing job successfully done or aborted.

Version: 0.41.3
VSCode Version: 1.91.1
Commit: 51c8aff7cb5a89f4a0e462fbacab938bdbfaf140
Date: 2024-09-25T17:13:50.377Z
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.22631

It looks like 0 files are sent for indexing. Here is the relevant logs:


2024-10-11 22:22:55.291 [info] Finished initializing merkle tree in 8.615458011627197 ms.
2024-10-11 22:22:55.291 [info] Doing the initial handshake with hash:
2024-10-11 22:22:55.293 [info] Handshake start
2024-10-11 22:22:55.437 [info] Handshake timing: 145.31791698932648
2024-10-11 22:22:55.437 [info] Handshake result: {“status”:“STATUS_EMPTY”,“repoName”:“de0f9c9a-aec8-4269-8b84-15dd84228281”}
2024-10-11 22:22:55.437 [info] Starting fast remote sync.
2024-10-11 22:22:55.438 [info] Total num embeddable files: 0
2024-10-11 22:22:55.438 [info] Root hash:
2024-10-11 22:22:55.438 [info] Starting repository upload from scratch.
2024-10-11 22:22:55.438 [info] Uploading 0 files.
2024-10-11 22:22:55.561 [info] Finished indexing repository.
2024-10-11 22:22:55.561 [info] Indexing job successfully done or aborted.