cretzel
cretzel

Reputation: 20164

IntelliJ IDEA hangs while "Finished, saving caches"

Each time I do a make (a Java project) in IDEA, the compile process is hanging stating "Finished, saving caches". I have to kill this process before I can continue. I tried to use File -> Invalidate Caches without success.

Any ideas?

Upvotes: 35

Views: 15844

Answers (7)

Amita
Amita

Reputation: 974

@manyata-goyal 's solution worked for me.

Adding steps for those who are trying this on a Windows system:

  • Get your hostname: Go to My PC -> Properties (System Properties) -> scroll down to 'Full computer name' -> copy the full computer name
  • Edit hosts file: Go to C:\Windows\System32\drivers\etc open hosts file
  • Uncomment the lines and add hostname as mentioned in the answer above

Upvotes: 0

Jake
Jake

Reputation: 4660

Just based on circumstances, I get the impression it might be SBT related. When I have sbt running in intellij (to run a play server), I get this issue. If I restart intellij, the issue goes away.

Admittedly, its hard to prove this connection, but after three uses of this solution, it appears valid.

(The hosts solution did not work for me)

Upvotes: 0

RogierE
RogierE

Reputation: 26

A colleague of mine also had this problem during debugging (Intellij frozes on 'finished, updating caches'). His server was configured to 'update classes and resources' on the 'on frame deactivation' option. Once he set this option to 'Do nothing' he could switch to another program to look something up and continue to debug later on.

Upvotes: 1

Manyata Goyal
Manyata Goyal

Reputation: 614

One more workaround is adding your mac's hostname to /etc/hosts file along with localhost like the following:

127.0.0.1 localhost <hostnameOfMac>
::1       localhost <hostnameOfMac>

This solved the problem for me.

Upvotes: 45

Aston
Aston

Reputation: 41

I'm in the same boat as RBrink. Company recently installed Bitdefender on all Macs and the hostname solution doesn't work.

Only workaround I've been able to use to get me past it is to simply click the little 'X' next to where is says "Finished, saving caches". It's annoying, but it works. Wish there was a better option, but I can't for the life of me figure it out.

Upvotes: 1

RBrink
RBrink

Reputation: 209

I got this same problem after installing Bitdefender. The suggestion with adding those lines in /etc/hosts doesn't solve it in my case.

Upvotes: 3

blamblambunny
blamblambunny

Reputation: 755

According to JetBrains,

IntelliJ IDEA caches a great number of files, therefore the system cache may one day become overloaded. In certain situations the caches will never be needed again, for example, if you work with frequent short-term projects. Also, the only way to solve some conflicts is to clean out the cache.

Go to the menu File | Invalidate Caches/Restart and take it from there.

https://www.jetbrains.com/help/idea/2016.3/cleaning-system-cache.html

Upvotes: 5

Related Questions