【问题标题】:sbt 0.13.17 "Error compiling sbt component 'compiler-interface"sbt 0.13.17 “编译 sbt 组件‘编译器接口’时出错”
【发布时间】:2018-06-15 22:43:33
【问题描述】:

当我在 Windows 终端上为一个简单的 Scala 程序执行“运行”命令时,会出现此错误:

[info] Resolving org.scala-sbt#interface;0.13.17 ...
[error] (compile:compileIncremental) Error compiling sbt component 'compiler-interface'
[error] Total time: 1 s, completed 15 Jun 2018, 23:36:48

我正在使用jdk 1.8.0_172scala version 2.11.8,sbt version 0.13.17。我唯一的库依赖是org.scalatest version 3.0.0。我一直在关注关于 Scala 的 Coursera 课程,这就是我使用这些特定(我相信过时?)版本的原因。

【问题讨论】:

  • 可以分享一下 build.sbt 吗?

标签: java scala compiler-errors compilation sbt


【解决方案1】:

正如@Chenthil 在对已删除答案的评论中提到的那样:

libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4"

解决了这个问题。

【讨论】:

  • @Chenthil:发布您自己的答案并随时@-回复给我以替换此内容
猜你喜欢
  • 1970-01-01
  • 2016-05-06
  • 1970-01-01
  • 2013-03-18
  • 2021-05-22
  • 2016-01-13
  • 1970-01-01
  • 2016-08-16
  • 2014-12-01
相关资源
最近更新 更多