Search code examples
intellij-ideaide

IntelliJ idea stucked on "loading project" screen


This is a Monday morning nightmare on top of existing bugs I have!!

I have couple of projects which i open simultaneously using intellj. One of the project was not showing all directory structures inside it so i took some advice and deleted the .idea folder. Now all hell broke loose on me.

I am stucked here from the dawn of mankind now

Intellij logs

2017-12-04 09:46:59,444 [   9036]   INFO -                git4idea.GitVcs - Git version: 2.14.3.0 
2017-12-04 09:46:59,533 [   9125]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [/codebase/plutus] 
2017-12-04 09:47:01,309 [  10901]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 6353 ms 
2017-12-04 09:47:02,913 [  12505]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 4772ms; general responsiveness: ok; EDT responsiveness: 2/5 sluggish, 1/5 very slow 
2017-12-04 09:47:05,252 [  14844]   INFO - ellij.project.impl.ProjectImpl - 18 project components initialized in 52 ms 

# ----- ^^ all good till here, below is when i start open new project


2017-12-04 09:47:26,455 [  36047]   INFO - og4jmonitor.Log4JWindowManager - creating new LoggingReceiver on port:=4454 
2017-12-04 09:47:26,496 [  36088]   INFO - ellij.project.impl.ProjectImpl - 153 project components initialized in 165 ms 
2017-12-04 09:47:26,497 [  36089]   INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms 
2017-12-04 09:47:26,645 [  36237]   INFO - CompilerBackwardReferenceIndex - backward reference index version differ due to: class java.io.FileNotFoundException 

Two errors i see on my screen are :

enter image description here

Intellij version

enter image description here

Any help would draw your chances of not having monday morning blues and nightmare like me! :)
Thank you!


Solution

  • [from comments]
    Warning: While it works, if you invalidate the cache, it destroys all histories of all projects


    So apparently, solution was simple but difficult to find.Here is how it worked :

    1. close all projects in intellij, don't close IDE, just all projects.
    2. delete the .idea/ folder from the project which was getting stucked.
    3. open the same project in intellij
    4. do File -> invalidate caches and restart
    5. done