IDEA reindexes and reimports everything after a crash

Answered

Build 9742. Once in a while I have to kill IDEA when it spins out of control. The problem is next time I load the same project, it starts reindexing everything. It starts with JDK, then every jar library, then imports all poms (again). There shouldn't be a reason to do that every time, should there?

Andrew

0
4 comments

I think that's to make sure that the cache is not corrupted. This is not very user friendly, I agree.

Worse, though, is that Idea reindexes everything after it shows the "Out of memory" dialog and "Shutdown" is chosen.

0

There is a new File -> Invalidate Caches action, so I'd prefer not to waste 20 mins till IDEA gets a grip on the reality (nothing was broken in caches, just killed due to e.g. OOME).

0

Have there been any updates on this? Or perhaps some comments from the IJ team? 

I have been experiencing this issue a lot during plugin development, as there have been many cases where I had to resort to stopping the sandbox instance by stopping the process in the main IDEA instance, which gets annoying because of complete reindexing on the next launch of the sandbox.

0

Hello,

After crash indexes are marked as corrupted and should be recreated. We couldn't tell which are affected, so reindex all to avoid possible corrupted parts.

0

Please sign in to leave a comment.