如何清除IntelliJ项目索引? [英] How to clear the IntelliJ project index?

查看:116
本文介绍了如何清除IntelliJ项目索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到麻烦,让我怀疑有一个需要清除的错误索引文件。症状是:

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只会在项目中找到一个类的子集

  • 试图在包上运行JUnit测试将找不到该包中的测试类。

在怀疑索引错误之前我重新安装了IntelliJ 8.1.3,然后我删除并重新检查了源代码。它没有帮助。只有在将代码签出到另一个文件夹后,IntelliJ才能再次开始正常工作,但仅适用于新项目文件夹。旧项目文件夹仍然被感染

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?

推荐答案

文件|无效缓存,重启。
或手动删除以下文件夹:

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

Linux / Windows


  • USER_HOME / .IntelliJIdea XX / system

  • USER_HOME/.IntelliJIdeaXX/system

Mac


  • 〜/ Library / Caches / IntelliJIDEA XX

  • ~/Library/Caches/IntelliJIDEAXX

(其中 XX 是您的IDEA版本)。

(where XX is your IDEA version).

查看常见问题解答了解更多信息基于IntelliJ IDEA平台的其他产品的详细信息和文件夹位置。

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

这篇关于如何清除IntelliJ项目索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆