Skip to content

sbt-2.0.0-RC3: Missing Scala tool configuration from the 'update' report. #8230

@soc

Description

@soc

steps

directories has been configured to use SBT 2.0.0-RC3 in the most recent commit.

problem

sbt test fails with

sbt:directories> test
[error] stack trace is suppressed; run last scalaInstance for the full output
[error] (scalaInstance) Missing Scala tool configuration from the 'update' report.  Explicitly define scalaInstance or scalaHome or include Scala dependencies in the 'scala-tool' configuration.
[error] elapsed time: 0 s, cache 90%, 18 disk cache hits, 2 onsite tasks
sbt:directories> last scalaInstance
[error] java.lang.RuntimeException: Missing Scala tool configuration from the 'update' report.  Explicitly define scalaInstance or scalaHome or include Scala dependencies in the 'scala-tool' configuration.
[error]         at scala.sys.package$.error(package.scala:27)
[error]         at sbt.internal.Compiler$.$anonfun$5(Compiler.scala:70)
[error]         at scala.Option.getOrElse(Option.scala:201)
[error]         at sbt.internal.Compiler$.scalaInstanceFromUpdate$$anonfun$1(Compiler.scala:96)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:79)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:79)
[error]         at sbt.std.Transform$$anon$3.work(Transform.scala:79)
[error]         at sbt.std.Transform$$anon$3.work(Transform.scala:79)
[error]         at sbt.Execute.submit$$anonfun$1$$anonfun$1(Execute.scala:284)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
[error]         at sbt.Execute.work(Execute.scala:295)
[error]         at sbt.Execute.submit$$anonfun$1(Execute.scala:284)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$2(ConcurrentRestrictions.scala:275)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:75)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:73)
[error]         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
[error]         at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
[error]         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
[error]         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095)
[error]         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619)
[error]         at java.base/java.lang.Thread.run(Thread.java:1447)
[error] (scalaInstance) Missing Scala tool configuration from the 'update' report.  Explicitly define scalaInstance or scalaHome or include Scala dependencies in the 'scala-tool' configuration.

expectation

It works if you drop the latest commit that upgraded SBT to 2.0.0-RC3.

notes

The project is Java-only and configured to not depend or require any other language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions