IDEA 15 cannot solve build.sbt after creating SBT project

As a name, I have tried most of the solutions on the Internet, but it still does not work. But I can upload my old SBT projects! He simply cannot create a new one.

Delete .lock file under ~. / Ivy2 and ~ / .sbt => does not work

Change sbt and scala version (Current version is SBT 13.9, scala 2.11.7) => does not work

Invalid cache and reboot => not working

Install SDK / Java path => do not work; Reinstall => do not work

Does anyone know what is going on?

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

+5
source share
2 answers

It seems like a bug in IDEA 15, I am temporarily downgrading to IDEA 14 to avoid this problem.

+2
source

Try re-importing the project.

Select the build.sbt file from the tree, then in the next dialog box make sure Sources for SBT and plugins . enter image description here

0
source

Source: https://habr.com/ru/post/1237010/


All Articles