简体   繁体   中英

sbt 0.13.17 “Error compiling sbt component 'compiler-interface”

When I execute the 'run' command on the Windows Terminal for a trivial Scala program, this error is raised:

[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

I am using jdk 1.8.0_172 , scala version 2.11.8, and sbt version 0.13.17 . The only library dependency I have is org.scalatest version 3.0.0 . I have been following a Coursera course on Scala which is why I'm using these specific (I believe dated?) versions.

As mentioned by @Chenthil in the comment to the deleted answer:

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

fixes this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM