Scala+SBT: Cannot resolve symbol
I was getting IDEA errors on imports and other classes of the form "Cannot resolve symbol" although compilation was working fine. I have a multi-project build.sbt file with a multi-layered dependency hierarchy. I found that these errors only occurred for implicit, transitive dependencies. For example, if project A dependsOn project B and project B dependsOn project C, then I would get these errors in project C for classes in project A. If I add those dependencies explicitly, then the problem goes away (part in bold):
lazy val projA = project in file("projB") ...
lazy val projB = project in file("projB") ... dependsOn(projectA)
lazy val projC = project in file("projC") ... dependsOn(projectB) dependsOn(projectA)
I don't have the time to create a standalone test of this theory to prove that this is the cause, but I just wanted to post this as a potential issue and solution in case others hit the same issue.
请先登录再写评论。
Please try IDEA 13.0.2 with the latest Scala plugin. Problem should be fixed there.
Best regards,
Alexander Podkhalyuzin.
Thank you.
I am seeing the same issue.
guice, jdbc are not detected. I am trying to get the play framework working and every step I am finding this issues.
@Vijay Dewangan please raise a ticket at https://youtrack.jetbrains.com/issues/SCL