scala-ide / scala-worksheet

A Scala IDE plugin for a multi-line REPL (called worksheet)
96 stars 24 forks source link

Long-running evaluations - visual feedback corrupts worksheet #161

Open davidallsopp opened 10 years ago

davidallsopp commented 10 years ago

See also https://github.com/scala-ide/scala-worksheet/issues/77

The following code starts running, but the visual feedback (the 'spinner' characters) that are inserted into the worksheet after a few seconds, aren't cleaned up, which results in a compile error (value | is not a member of Unit possible cause: maybe a semicolon is missing before `value |'?)

object slow {
  println("start")                         
  Thread.sleep(5000)
}

However, following the slow-running task with further console output works fine:

object slow {
  println("start")                                //> start
  Thread.sleep(5000)
  println("end")                                  //> end
}