Intellij找不到声明去

时间:2019-04-05 18:54:41

标签: intellij-idea

我正在处理一个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

我无法单击声明,这使我感到沮丧!

我知道已经问过here这个问题,但是提供的解决方案不起作用,我很拼命,我尝试过:

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.2\system
Open Idea and import project ....

它不起作用。

1 个答案:

答案 0 :(得分:1)

我更改了build.sbt文件的name属性的值,即更改了字符,保存了,放回了字符,再次保存了,项目已经重新编译,现在可以找到源了,包装,一切。

我不明白,事实是事实,但是它行得通,我可以继续。