Issue #10 duplicate

Evaluating worksheet truncates original file

Bolesław Tekielski
created an issue

Here is what is happening: I have simple scala file, with contents as follows:

val l = List(1,1,1,1,3,3,3,4,5,5,5)

val head = l.head

val l2 = l.foldLeft(Seq(l.head))((acc,elem)=> if (elem == acc.head) acc else Seq(elem) ++ acc).reverse

which evaluated fine, but after the evaluation original file gets truncated to

val l = List(1,1,1,1,3,3,3,4,5,5,5)

val head = l.head

val l2 = l.foldLeft(Seq(l.head))((acc,elem)=> if (elem == acc.head) acc e 

and I need to undo twice to get the original contents back.

Comments (2)

  1. Tony Sloane repo owner

    I think that you are seeing the same bug as I have noted in issue #1 (solution unknown at present). You should only see the problem if there are long lines.

  2. Log in to comment