Skip to content

[2.x] build.sbt does not support comma separated import #8826

@xuwei-k

Description

@xuwei-k

steps

build.sbt

import scala.util, util.Random

def f = Random.nextInt()

project/build.properties

sbt.version=2.0.0-RC9

problem

-- [E103] Syntax Error: comma-separated-import-project-example/build.sbt:-1:0 ------------------
-1 |util.Random
   |^^^^
   |Illegal start of toplevel definition
   |
   | longer explanation available when compiling with `-explain`
-- [E006] Not Found Error: comma-separated-import-project-example/build.sbt:1:8 ----------------
1 |def f = Random.nextInt()
  |        ^^^^^^
  |        Not found: Random
  |
  | longer explanation available when compiling with `-explain`

expectation

notes

e.g.

https://github.com/sbt/zinc/blob/b51fdb764efff1e2ee570f8da72a4f7211ef98b3/build.sbt#L3-L4

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