Scala Interpreter output not ideal

39 views
Skip to first unread message

tranquility2k4

unread,
Mar 2, 2017, 10:44:04 AM3/2/17
to Scala IDE User
The output in the Scala Interpreter always seems to have the first line of output indented by a single space. So if I output the numbers 1, 2 and 3 on three separate lines then it would output:
 1
2
3

which is clearly misleading. I'm wanting to use this in an educational / tutorial sense, so is there any way to fix this?

Rafał Krzewski

unread,
Mar 5, 2017, 4:15:01 AM3/5/17
to Scala IDE User
Hi,

here are some files you should look at to investigate where the space character is coming from:

scala-ide/org.scala-ide.sdt.core/src/org/scalaide/core/internal/repl/EclipseRepl.scala
scala-ide/org.scala-ide.sdt.core/src/org/scalaide/ui/internal/repl/ReplConsoleView.scala
scala-ide/org.scala-ide.sdt.core/src/org/scalaide/ui/internal/repl/InterpreterConsoleView.scala

to set up local environment for building and testing Scala IDE, follow these instructions:
Rafał

hol...@informatik.htw-dresden.de

unread,
Mar 30, 2017, 9:53:14 AM3/30/17
to Scala IDE User
Same problem here with latest Eclipse and ScalaIDE

 (0 to 3) foreach(println)

 0
1
2
3

Reply all
Reply to author
Forward
0 new messages