创建SBT项目后,IDEA 15无法解析build.sbt

时间:2015-11-28 16:01:40

标签: scala intellij-idea sbt

作为标题,我在互联网上尝试了大多数解决方案,但它仍然无效。 但我仍然可以加载我的旧SBT项目! 它只是无法创建一个新的。

删除〜。/ ivy2和〜/ .sbt =>下的.lock文件不工作

更改sbt和scala版本(当前版本为SBT 13.9,Scala 2.11.7)=>不工作

使缓存无效并重新启动=>不工作

设置SDK / Java路径=>不行 重新安装=>不工作

有谁知道发生了什么?

01:01:48 SBT project import [warn] [FAILED ] org.scala-sbt#compiler-interface;0.13.9!compiler-interface.jar(src): (0ms) [warn] ==== typesafe-ivy-releases: tried [warn] https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.9/srcs/compiler-interface-sources.jar [warn] ==== sbt-plugin-releases: tried [warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/compiler-interface/0.13.9/srcs/compiler-interface-sources.jar [warn] ==== local: tried [warn] /Users/WeiChen/.ivy2/local/org.scala-sbt/compiler-interface/0.13.9/srcs/compiler-interface-sources.jar [warn] ==== activator-local: tried [warn] /Users/WeiChen/activator-dist-1.3.6/repository/org.scala-sbt/compiler-interface/0.13.9/srcs/compiler-interface-sources.jar [warn] ==== activator-launcher-local: tried [warn] /Users/WeiChen/.activator/repository/org.scala-sbt/compiler-interface/0.13.9/srcs/compiler-interface-sources.jar [warn] ==== public: tried [warn] https://repo1.maven.org/maven2/org/scala-sb..

enter image description here

2 个答案:

答案 0 :(得分:2)

这似乎是IDEA 15的一个错误,我暂时降级到IDEA 14以避免这个问题。

答案 1 :(得分:0)

尝试重新导入项目。

从树中选择build.sbt,然后在下面的对话框中,确保勾选Sources for SBT and pluginsenter image description here