Skip to content

console doesn't handle -Yno-predef -Yno-imports #2572

@dwijnand

Description

@dwijnand

steps

// build.sbt
scalaVersion := "2.11.8"

scalacOptions += "-Yno-predef"
scalacOptions += "-Yno-imports"
$ sbt console

problem

[info] Starting scala interpreter...
[info]
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_74).
Type in expressions for evaluation. Or try :help.

scala> <console>:6: error: not found: type Any
  def set(x: Any) = value = x.asInstanceOf[scala.tools.nsc.interpreter.IMain]
             ^

expectation

I expect the REPL to start silently and properly like always.

notes

sbt version 0.13.11

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