Intellij 找不到要转到的声明



我正在使用一个scala项目,这是我的规范:

IntelliJ IDEA 2019.1 (Community Edition)
Build #IC-191.6183.87, built on March 27, 2019
JRE: 1.8.0_202-release-1483-b39 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.4

我无法点击声明,这让我感到沮丧!

我知道这个问题已经在这里被问过了,但提供的解决方案不起作用,我很绝望,我试过了:

File-> Invalidate Caches/Restart
Mark src folder as root source folder
Exit IDE
Recursively delete all .iml files from project directory
Find and delete all .idea folders
Delete contents of the caches, index, and LocalHistory folders under .IntelliJIdea2017.2system
Open Idea and import project ....

而且它不起作用。

我更改了 build.sbt 文件的 name 属性的值,也就是说,我更改了一个字符,我保存了,我把这个字符放回去了,我再次保存,项目已经重新编译,现在如果它找到了源代码、包,所有内容。

实际上,我不明白,但它有效,我可以继续。

intelliJ 将.php文件解除关联为 PHP 文件,而是出于某种原因将其作为文本文件。

转到首选项 ->文件类型并添加回 *.php 作为 PHP 文件类型解决了我所有的问题。

最新更新