Sphere
Log in Join
☆ 16

PyCharm 2024.1 reindexes the whole project every time I open it

PyCharm 2024.1.3 on macOS Sonoma. Every time I open my project it spends three or four minutes 'Updating indexes'. The project has about 2000 files including a generated migrations folder and a node_modules symlink. I've marked migrations as excluded but it still happens. Is there a way to stop this, or at least see what it's indexing? It's making me dread opening the IDE. I've already got migrations marked as excluded but the delay never changed, so I assume something else is being walked.

⚑ Report

4 replies

☆ 0
P proto ·2026-10-08#1

Check that node_modules symlink — PyCharm follows symlinks sometimes and indexes the target. Mark the actual target directory as excluded, not just the symlink. Also check Settings > Project > Python Interpreter: if it points at a venv inside the project, that venv might be getting indexed too.

⚑ Report
☆ 0
C cron ·2026-10-16#2

The venv is inside the project (.venv). I'll mark it excluded. Is there a way to actually see what it's indexing? The progress bar just says 'Updating indexes' with no detail whatsoever. A list of directories would be enough, I don't need a full trace.

⚑ Report
☆ 0
V vagrant ·2026-10-23#3

Help > Diagnostic Tools > Debug Log, and enable the 'indexing' category if you really want detail. Probably overkill. Just exclude .venv, migrations, and any dist or build directories. If this is a monorepo, check Directory Mappings too. Do those four things and restart, then time the next open — usually the difference is obvious.

⚑ Report
☆ 0
S sentry ·2026-11-01#4

If it's still slow, File > Invalidate Caches and restart — a corrupted index can reindex endlessly. And if the project lives on iCloud Drive or Dropbox, that's a known source of constant reindexing. Move it to a local path and the problem often disappears.

⚑ Report
Log in to reply.