Codebase indexing stuck at 0.5%

Hello, first I want to say a big thank you for Cursor. Indexing entire codebase is the ai for dev that I’ve been waiting for and you made it! That’s genius in action, and I’m overflowing with gratitude.

The first couple projects indexing worked like a charm, but now it’s getting stuck at 0.5%

Here’s Cursor about;

Version: 0.11.7
VSCode Version: 1.80.1
Commit: db9228712f398b2885678c7e2b2644471555d3e0
Date: 2023-09-25T22:34:31.769Z
Electron: 22.3.10
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621

Any ideas?

Same here! And CPU seems active during the whole “indexing”, in spite of the repo being quite small.


I would add that it doesn’t seem to be a UI-only thing, as I get this in the chat.

Version: 0.11.7
VSCode Version: 1.80.1
Commit: db9228712f398b2885678c7e2b2644471555d3e0
Date: 2023-09-25T22:34:31.769Z (20 hrs ago)
Electron: 22.3.10
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.3.0

I’m having the same issues. I also can’t use the chat feature at all. I have reported a bug.

Bit of a bummer, Haven’t had any issues until now. Hope someone has a workaround!

Open the Output page (a tab in the same view as Terminal), select “Indexing & Retrieval”, you may see some output there.

It’s been like this since 24 hours ago

good tip for debug output. it looks indeed like an internal error. here’s the last lines:

2023-09-26 20:58:36.139 [info] NUM FILES 66
2023-09-26 20:58:36.149 [info] Total Files 60 Total File Size 1.126413 MB
2023-09-26 20:58:37.907 [info] RETRYING ON [internal] internal error
2023-09-26 20:58:37.907 [error] ConnectError: [internal] internal error
	at o (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:471170)
	at e.errorFromJsonBytes (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:472081)
	at /Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:487144
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async /Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:326968
	at async Object.unary (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:486078)
	at async Object.uploadFile (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:466995)
	at async e.Indexer.x (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:333605)
	at async t (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:330168)
	at async e.Indexer.v (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:330652)
	at async C (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:329442)
2023-09-26 20:58:37.992 [info] NUM FILES 66
2023-09-26 20:58:38.000 [info] Total Files 60 Total File Size 1.126413 MB

Having same issue…

Sorry about the slow turn around time here. Aware of the issue and working on an immediate fix.

2 Likes

Thank you!

We’re performing a migration that will fix this. In the meantime, Cursor should fall back on a local context building method that does not use embeddings. Will revert here when this is done.

Migration should be complete. Do you still see issues on your end?

Works now, a million thanks!

image

1 Like

Same here

2023-09-28 03:47:47.291 [info] NUM FILES 2678
2023-09-28 03:47:47.780 [info] Total Files 2389 Total File Size 16.552562 MB
2023-09-28 03:47:48.729 [info] RETRYING ON [unavailable] HTTP 503
2023-09-28 03:47:48.729 [error] ConnectError: [unavailable] HTTP 503
	at s (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:489706)
	at e.validateResponseWithCompression (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:490411)
	at /Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:486828
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async /Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:326968
	at async Object.unary (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:486078)
	at async Object.startUploadRepo (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:466995)
	at async e.Indexer.uploadFiles (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:328612)
	at async /Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:323737
2023-09-28 03:47:51.658 [info] NUM FILES 2678
2023-09-28 03:47:51.985 [info] Total Files 2389 Total File Size 16.552562 MB

Do you still see this problem?