PHPStorm不索引包含项目中设置的路径 [英] PHPStorm not indexing include paths set in project

查看:1148
本文介绍了PHPStorm不索引包含项目中设置的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在为新项目提供包含路径之后,PHPStorm不会索引该目录.

After I give an include path to my new project, PHPStorm doesn't index that directory.

我添加了PHPUnit目录,但是其类没有自动补全功能.

I added the PHPUnit directory, but have no autocompletion for its classes.

推荐答案

注意:此解决方案将删除所有项目的包括本地历史记录的缓存.下次打开项目时将重新建立索引,但是本地历史记录将永远消失.话虽如此...

Note: this solution will delete the cache, including local history, for all projects. The indexes will be rebuilt next time you open a project but the local history is gone forever. With that said...

尝试从菜单中选择文件> 无效缓存/重新启动... ,然后选择无效并重新启动.

Try selecting File > Invalidate Caches / Restart... from the menu then Invalidate and Restart.

这篇关于PHPStorm不索引包含项目中设置的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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