scala-ide / scala-worksheet

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

Worksheet keeps doing work after the output cut-off limit is reached #101

Open dotta opened 12 years ago

dotta commented 12 years ago

I just noticed that the worksheet may be keeping wasting cycles even if the output cut-off limit has been reached. This should be avoided.

For instance, take the following worksheet source:

object asd {

lazy val fibs = {
  def f(a:Int,b:Int):Stream[Int] = a #:: f(b,a+b)
  f(0,1)
}                                                 //> fibs  : Stream[Int] = <lazy>

 fibs.drop(100).foreach(println)
}

And you will notice that the right scroll keeps being pushed to the bottom...