Intelli J IDEA takes forever to update indices

前端 未结 10 1700
走了就别回头了
走了就别回头了 2020-12-12 11:39

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 Mave

相关标签:
10条回答
  • 2020-12-12 12:00

    the easier way is as follow: file --> settings --> (uncheck) Synchronize files on frame or editor tab activation.

    enter image description here

    0 讨论(0)
  • 2020-12-12 12:17

    In Intellij 2020.2 I faced this problem too. Restart/Invalidating cache didn't work for me. What I did was just deleting the cache folder in the following path:

    C:\Users\davoud\AppData\Local\JetBrains\IntelliJIdea2020.2
    
    0 讨论(0)
  • 2020-12-12 12:17

    you can manually exclude file or directory withIDEA Indexing, it can improve file load speed. some files are generated dynamic, we don't need index these files every time when we start IDEA.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-12 12:18

    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.

    0 讨论(0)
  • 2020-12-12 12:21

    There are several answers in the Forums for different IntelliJ Versions, here is what I´ve tried (IntelliJ 13).

    • Give more Memory. Does not help anything with the 'Updating indices'
    • Delete .idea and iml in project. Does not help.

    In the end what resolved my problem with 'Updating indices' was:

    • delete 'caches' folder in user/.IntellIJIdea13/system/
    0 讨论(0)
提交回复
热议问题