gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Workspace indexing is extremely slow and not improved by .aiexclude configuration

Open VenkatKwest opened this issue 1 year ago • 2 comments

What happened?

Gemini Code Assist extension for VS Code takes over 1.5 hours to index the workspace every time VS Code is opened, even after excluding unnecessary folders using .aiexclude (indexing only packages/next/*). Re-indexing takes the same amount of time regardless of workspace changes or exclusions. This does not happen with GitHub Copilot under similar setup.

What did you expect to happen?

Workspace indexing should be faster, especially after excluding large folders with .aiexclude. Re-indexing should be shorter if there are no material changes. Performance should be comparable to similar tools like GitHub Copilot.

Client information

Platform: VS Code on Windows 11. Gemini Code Assist extension version: [email protected] Next.js repository as the workspace.

Login information

Logged in via Google Account

Anything else we need to know?

This severely impacts productivity. No similar reports were found in existing issues. Would appreciate any guidance or workaround. Happy to help with diagnostics if needed.

VenkatKwest avatar Nov 17 '25 05:11 VenkatKwest

Same here, on one repository everything indexes fine, but on the other, a relatively small python repo, it quickly baloons to 20+ gb of ram usage until I eventually kill it. I'm on mac os.

ciriousjoker avatar Dec 06 '25 22:12 ciriousjoker

Try AntiGravity

VenkatKwest avatar Dec 07 '25 01:12 VenkatKwest

I had the same kind of issue: Gemini Code Assist was indexing all my node_modules and .angular/cache even those folders were in the .gitignore file. I tried to add them also in a specific .aiexclude but still the same. In my computer the process was crashing after a while. I saw an option in the settings :

Image

and just disabling it was much better. I did not see any side effect for the moment.

ruffp avatar Jan 22 '26 11:01 ruffp

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Feb 22 '26 00:02 gemini-cli[bot]

Well, it's still very much of an issue

tajemniktv avatar Mar 12 '26 19:03 tajemniktv

Yes i do have the same issue

cwillam avatar Mar 30 '26 11:03 cwillam

I'm having the same issue. I've switched to another AI because of it.

BullgozipZero avatar Apr 01 '26 06:04 BullgozipZero