Skip to content

Reading input from application doesn't work #882

@msinton

Description

@msinton

To reproduce, create a simple app such as:

object Main extends App {

  val x = readInt()
  val y = readInt()
  println(x + y)
}

When run and supply numbers (1, 2) you get the following unexpected error:

[E] Exception in thread "main" java.lang.NumberFormatException: For input string: "2"
[E] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

The same does not occur if running with sbt.

(p.s. Loving Bloop)

Metadata

Metadata

Assignees

Labels

bugA defect or misbehaviour.priority / highAny change that has a high priority to be fixed because of its immediate consequences.task / run

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions