Is it normal for Intelli J to take a lot of time (almost 12 hours) to update indices for a project? I just installed Intelli J on my machine and imported a rather large Maven project (13k+ files).
I understand that the project is large but I let my computer up all night and when I woke up in the morning, Intelli J still hasn't finished updating the indices for the files yet, which makes it impossible to do anything since the popup with title 'Updating Index' keep hanging there in the middle of the screen.
I tried deleting the cache and it works perfectly. Thanks for the solution friends.
Just:
Once selected you get a pop-up with a bunch of options.
and before doing that make sure you saved all your changes else it might delete some unsaved changes.
Once you hit that, IntelliJ will restart and then you can see that all the indexing is done really fast.
Delete caches in library folder
On Mac OSX the location of cache is
~/Library/Caches
I had the same problem with IntelliJ 2017.2.3 - i.e. my project would keep updating indexes over and over again.
I discovered that I had gone over my disk quota in my home directory. By default IntelliJ stores the indexes in the home directory like this:
The solution for me was to:
Move the whole .IdeaIC2017.2 directory to another mount which has more space:
Update
bin/idea.properties
to point at the new index/config location:It is possible that some of the other answers to this question were due to the same problem and were inadvertently fixed by "deleting caches folder", "invalidating caches" etc which would have potentially freed up enough disk space to build the indexes.
probably - old bug in caching system. it happens in ALL versions, especially if you upgrade your version of IntelliJ or JDK. To fix it: 1) close the GUI. 2) go to %HOME_DIR%.IntelliJIdeaXXXX\system\caches and delete it 3) start the the GUI again.
Though the accepted and other answers may fix a particular problem, I have found that the problem with very long indexing times often comes from the fact that a repository contains or links to some directory that contains a large number of files. Often this is done for testing and the directory in question is not actually part of the project, e.g. ignored by the VCS.
The IDE does not automatically ignore those directories when indexing, but it is possible to "exclude" the directory from the project. This will prevent indexing as well.
There are several answers in the Forums for different IntelliJ Versions, here is what I´ve tried (IntelliJ 13).
In the end what resolved my problem with 'Updating indices' was: