【IDEA】idea一直不停的scanning files to index 解決方法


參考文章:https://blog.csdn.net/libusi001/article/details/102800605

 

scanning files to index 掃描文件建立索引

 


方法一、File -> Invalidate Caches / Restart

 

 

 

 

 

 

 


方法二、刪除C:\Users\xxx\.IntelliJIdea2018.2\system文件夾

 

 

 


方法三、將掃描的文件夾排除在建立索引的范圍之外,即將xxx文件夾標記為Excluded。

 

 

 

方法四、更改Edit Configurations和idea配置路徑【最有用的方法】

1、一直掃描很長時間,點擊Edit Configurations,update classes and resources更改為Do nothing。

 

 

 

 

 

 

 

2、會發現掃描時間很短,但是還會一直重復掃描

3、更改idea配置路徑

 

 

 

 

idea.config.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\config idea.system.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\system idea.plugins.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\plugins #--------------------------------------------------------------------- # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#--------------------------------------------------------------------- # idea.config.path=${user.home}/.IntelliJIdea/config #--------------------------------------------------------------------- # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#--------------------------------------------------------------------- # idea.system.path=${user.home}/.IntelliJIdea/system #--------------------------------------------------------------------- # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#--------------------------------------------------------------------- # idea.plugins.path=${idea.config.path}/plugins

 


思路:

1>重啟idea,重裝idea,關機重啟,kill idea進程都不好使。
2>重新download的代碼一樣的問題,所以一定是配置文件的問題。
3>配置文件刪掉一樣不好使,可能是需要刷新加載配置文件。
4>不重啟的情況下(重啟也不一定好用),更改idea配置路徑即可起到刷新的效果。
5>更改完畢后,關閉idea,任務管理器殺死進程,重新啟動。
6>發現update完畢后就不會重復掃描建立索引了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM