Skip to content

"error: ')' expected but eof found." after Scala 2.12.13 #12317

@eed3si9n

Description

@eed3si9n

reproduction steps

Locally build sbt using Scala 2.12.13 and run:

lazy val root = (project in file("."))

lazy val sub1 = (project in file("sub1"))

lazy val sub2 = (project in file("sub2"))

lazy val sub3 = (project in file("sub3"))

Partest for this is https://gist.github.com/eed3si9n/5cb9572eac9f2be11ae3a42cd25174ec

problem

This causes

/private/tmp/hello/build.sbt:24: error: ')' expected but eof found.
lazy val sub2 = (project in file("sub2")
                                        ^

expectation

No error.

notes

The relevant place in sbt code is https://github.com/sbt/sbt/blob/4b71de0098b1f28b3d8ec6fa93e87cc5c9d50809/main-actions/src/main/scala/sbt/compiler/Eval.scala#L401-L408. It's possible I messed some other thing while upgrading to Scala 2.12.13, but figured I'd report this in case this pops up in a different way elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions