Help: I can't import an sbt project
I have an sbt project. I try to import it and it goes wrong in the middle. I get an imported project that's incomplete - for example it doesn't know about the build.sbt file
What sort of things might I try to diagnose or fix it?
I just downloaded 14.1.3 today and this is the first project Ive tried to rebuild since.
Please sign in to leave a comment.
ok - got it working
It seems that I did not have a default java sdk set up.
could do with a more helpful error message though!
sorry to re-raise
But I've found that consistently all projects I used to be able to import no longer mport.
So if you "open" an sbt-based project it goes to the import dialog, you select the options and it starts processing the sbt file.
Then the import progress window just disappears.
You can go and open the project and it hasn't processed sbt correctly - so it is just listing the sbt file and none of the source
You can then open sbt file and do the import - which sort of works but doesn't find the sources.
This has only occured since 14.1.3 yesterday morning
I am seeing the same behavior. Sbt import works with IntelliJ IDEA 14.1.2 / Scala-plugin 1.4.15, but fails with IDEA 14.1.3 (Scala-plugin 1.4.15). Can reproduce with a simple Play Framework build.sbt.
Same issue here. Looking at ~/Library/Logs/IdeaIC14/idea.log here is the error I'm getting:
...
Reason: target module (ModuleData: module ':root:') is not found at the ide and can't be imported
2015-05-17 16:20:32,419 [ 242941] WARN - e.LibraryDependencyDataService - Can't import library dependencies [LibraryDependencyData: dependency=library sbt-and-plugins|scope=Compile|exported=false|owner=module ':root-build:']. Reason: target module (ModuleData: module ':root-build:') is not found at the ide and can't be imported
2015-05-17 16:20:32,420 [ 242942] ERROR - llij.ide.plugins.PluginManager - null
java.lang.NullPointerException
at org.jetbrains.plugins.scala.project.package$ModuleExt.compilerConfiguration(package.scala:116)
at org.jetbrains.plugins.scala.project.package$ModuleExt.configureScalaCompilerSettingsFrom(package.scala:113)
...
I'm facing the same error since updating to latest Intellij release. Getting errors like the following:
2015-05-18 17:01:42,909 [ 520221] WARN - e.LibraryDependencyDataService - Can't import library dependencies [LibraryDependencyData: dependency=library sbt-and-plugins|scope=Compile|exported=false|owner=module ':core-build:']. Reason: target module (ModuleData: module ':core-build:') is not found at the ide and can't be imported
2015-05-18 17:01:42,909 [ 520221] WARN - e.LibraryDependencyDataService - Can't import library dependencies [LibraryDependencyData: dependency=library sbt-and-plugins|scope=Compile|exported=false|owner=module ':scalazstream-build:']. Reason: target module (ModuleData: module ':scalazstream-build:') is not found at the ide and can't be imported
Same here exactly.
Then I tried version 1.4.189.1.EAP and it's working so far.
I also cannot import anything new after moving to IJ 14.1.3. This is a major issue for me. No SBT-based projects will import. Please address and fix this ASAP. P0.
Stack trace from log:
Resolved this for now by installing the Scala plugin EAP (https://confluence.jetbrains.com/display/SCA/Scala+plugin+EAP).
Problem has been resolved for me with with following update of the Scala plugin (1.5).
http://plugins.jetbrains.com/update/index?pr=&updateId=19817