简体   繁体   中英

Intellij Cannot find declaration to go to

I am working with a scala project, this is my spec:

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.

I don't get it, actually, but it works and I can continue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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