Skip to content

Error message for unimplemented members does not pretty print methods correctly #3623

Closed
@jvican

Description

@jvican
[error] -- Error: /data/rw/code/scala/loop/rework/src/main/scala/bloop/State.sca
la:110:8
[error] 110 |  class MyRunner(msg: String) extends sbt.testing.Runner {
[error]     |        ^
[error]     |class MyRunner needs to be abstract, since:[error]     |it has 4 unimplemented members.
[error]     |/** As seen from class MyRunner, the missing signatures are as foll
ows.
[error]     | *  For convenience, these are usable as stub implementations.
[error]     | */
[error]     |  def args: (): Array[String] = ???
[error]     |  def done: (): String = ???[error]     |  def remoteArgs: (): Array[String] = ???
[error]     |  def tasks: (x$0: Array[sbt.testing.TaskDef]): Array[sbt.testing.T
ask] = ???

As you see, def args: (): Array[String] = ??? has an extra : before the parameter list.

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