【发布时间】:2018-05-01 21:28:48
【问题描述】:
这里是 SBT 的新手,这很可能是罪魁祸首。我正在尝试让 IntelliJ Community 2017.2 导入我的 a simple Scala/SBT project。
当您克隆该 repo 时,您可以(如果需要)运行 sbt compile 和/或 sbt run 以验证极小的 Driver.scala 源代码是否按预期编译和运行。
但是当我尝试将其导入 IntelliJ 时:
哎呀!这是一个巨大的堆栈跟踪,但结尾是:
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error] at xsbt.boot.Boot$.main(Boot.scala:17)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: sbt/internal/librarymanagement/GetClassifiersModule
[error] Use 'last' for the full log.
知道这里发生了什么吗?我的项目(请参阅 GH 存储库)中有什么跳出来的?
【问题讨论】:
标签: scala intellij-idea sbt