Skip to content

The sbt fails with multi-build setup and addPluginSbtFile #8570

@azdrojowa123

Description

@azdrojowa123

steps

  1. Unzip the project. It contains an additional sbt file in the temp directory.
  2. Open the terminal inside the project root.
  3. Execute sbt --addPluginSbtFile=temp/file.sbt

Expected result: the sbt starts
Actual result: the sbt fails with error message:

java.lang.RuntimeException: Invalid build URI (no handler available): file:~/bug2Projects/c1/project/
        at scala.sys.package$.error(package.scala:30)
        at sbt.internal.Load$.$anonfun$builtinLoader$1(Load.scala:490)
        at sbt.internal.BuildLoader.$anonfun$apply$3(BuildLoader.scala:245)
        at scala.Option.getOrElse(Option.scala:189)
        at sbt.internal.BuildLoader.apply(BuildLoader.scala:245)
        at sbt.internal.Load$.loadURI$1(Load.scala:555)
        at sbt.internal.Load$.loadAll(Load.scala:571)
        at sbt.internal.Load$.loadURI(Load.scala:501)
        at sbt.internal.Load$.load(Load.scala:480)
  1. Create an empty project folder inside the c1 directory.
  2. Repeat step 3.

Expected & actual result: the sbt starts

problem

It seems that the absence of a project directory inside the nested build causes sbt to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions