Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
847 views
in Technique[技术] by (71.8m points)

macos - How to clear the IntelliJ project index?

I've run into trouble that makes me suspect there is a bad index file that needs to be cleared. The symptoms are:

  • Cmd+N will only find a subset of classes in the project
  • Trying to run JUnit test on a package won't find the test classes in that package.

Before suspecting a bad index I reinstalled IntelliJ 8.1.3, then I removed and re-checked out the source code. It didn't help. Only after checking out the code into a different folder did IntelliJ start working correctly again, but only for the new project folder. The old project folder is still infected.

So where is that index and how do I clear it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

File | Invalidate Caches, restart. Or manually delete the following folders:

Linux/Windows:

  • USER_HOME/.IntelliJIdeaXX/system

Mac:

  • ~/Library/Caches/IntelliJIDEAXX

(where XX is your IDEA version).

See the FAQ for more details and folder locations of the other IntelliJ IDEA platform based products.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...