getcursor / cursor

The AI Code Editor
https://cursor.com
20.63k stars 1.38k forks source link

Codebase indexing is not working #1373

Open atiakr opened 3 months ago

atiakr commented 3 months ago

image image

Codebase indexing only outputs loading in window10 Is there a logfile I can check to troubleshoot this error?

sualehasif commented 3 months ago

Suspect this has something to do with windows. can you run output: focus on output view in cmdshiftp and then focus on the Cursor Indexing & Retrieval logs and send them here or email them to us.

atiakr commented 3 months ago

Suspect this has something to do with windows. can you run output: focus on output view in cmdshiftp and then focus on the Cursor Indexing & Retrieval logs and send them here or email them to us.

I just sent it to your email, please confirm.

Mdev303 commented 3 months ago

same bug on windows 11 fresh installation

Mdev303 commented 3 months ago

I went back to win 10 and this still happens

lesmo commented 3 months ago

@sualehasif I've been having this issue forever, no obvious error tho:

2024-04-12 13:06:54.924 [info] Repo client: syncing embeddings with backend:  https://repo42.cursor.sh
2024-04-12 13:06:54.924 [info] Creating merkle client.
2024-04-12 13:06:54.924 [info] Done creating merkle client.
2024-04-12 13:06:54.924 [info] Doing a startup handshake.
2024-04-12 13:06:56.364 [info] Finished initializing merkle tree in 2387.0390579998493 ms.
2024-04-12 13:06:56.434 [info] Doing the initial handshake with hash: bb98aa91e84e98320e9cb8bd388d0b502f453866f74d870ff945ae9f479fee12
2024-04-12 13:06:56.475 [info] Handshake start
2024-04-12 13:06:57.651 [info] Handshake timing: 1211.6443099975586
2024-04-12 13:06:57.651 [info] Handshake result:
2024-04-12 13:06:57.652 [info] Starting fast remote sync.
2024-04-12 13:06:57.705 [info] Total num embeddable files: 6177
2024-04-12 13:06:57.826 [info] Root hash: bb98aa91e84e98320e9cb8bd388d0b502f453866f74d870ff945ae9f479fee12
2024-04-12 13:06:57.831 [info] Finished indexing repository.
2024-04-12 13:06:57.831 [info] Indexing job successfully done or aborted.

I'm running this in Windows 11 Pro, repo is running in WSL. Funny thing is the LLM thinks it knows, and just hallucinates a response (this is a Typescript only project, so its response makes no sense): image

Mdev303 commented 3 months ago

I tried completely uninstalling cursor including deleting all the cache in AppData I also removed auto index in the settings, but I still have this bug, it makes cursor completely unusable Capture

Can the cursor team at least give us a workaround?

Mdev303 commented 3 months ago

@sualehasif I tried focus on output view but I don't have anything called "Cursor Indexing & Retrieval logs" 1 2

Mdev303 commented 3 months ago

I think I solved this after installing Microsoft Visual C++ https://www.microsoft.com/fr-fr/download/details.aspx?id=48145 let me know if that was the issue

atiakr commented 3 months ago

I think I solved this after installing Microsoft Visual C++ https://www.microsoft.com/fr-fr/download/details.aspx?id=48145 let me know if that was the issue

oh. I did what you said and the codebase indexing started working. thx!

lesmo commented 2 months ago

@Mdev303 @atiakr the VC Redist fix sounds like an interesting solution, might work for more people.

But it didn't work for me, it's already installed in my device: image image

mennovergeer commented 1 month ago

I have the same issue, I commented elsewhere. I also tried this fix, but my machine already had visual c++ 2015 installed so that did not work.