You may be on Windows, where EOL is \ r \ n.
You also need to take this off.
Here I rebooted into Windows to demonstrate ...
apm@halyard ~/tmp $ vi bigbomb.scala apm@halyard ~/tmp $ skalac bigbomb.scala ; skala bigbomb.Test "ava.lang.NumberFormatException: For input string: "35740250 at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
Note that in cygwin I have to :se fileformat=dos in vi use the line endings \ r \ n.
Here is an example where an unconfirmed impedance mismatch between the source EOL and the EOL runtime listened to me:
some dumb code
You want to use s.lines.mkString , to turn it off.
source share