简体   繁体   English

Intellij找不到声明去

[英]Intellij Cannot find declaration to go to

I am working with a scala project, this is my spec: 我正在与一个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

I cannot click on declarations and it is frustrating me! 我无法单击声明,这让我感到沮丧!

I know that this question already have been asked here but the solutions provided are not working and i am desperate, i tried: 我知道这里已经有人问这个问题但是提供的解决方案不起作用,我很拼命,我尝试过:

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 ....

And it is not working. 而且它不起作用。

I changed the value of the name attribute of the build.sbt file, that is, I changed a character, I saved, I put the character back, I saved again, the project has recompiled and now if it finds the sources, the packages, everything. 我更改了build.sbt文件的name属性的值,也就是说,更改了字符,保存了,放回了字符,再次保存了,项目已经重新编译,现在可以找到源文件,软件包了,一切。

I don't get it, actually, but it works and I can continue. 实际上,我不知道,但是它有效,我可以继续。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM