Eclipse freeze when specific code is in a Scala editor
Found in a fresh install at todays date with: eclipse 3.5.2 classic and scala 2.8-final nightly build plugin.
To reproduce:
Create a new object in a Scala project and add the following code. Save and eclipse will freeze without error message or console print out.
import scala.collection.immutable.HashMap
object SudokuSolver {
def solve(board:List[List[Int]]) = {
val state = HashMap[(Int,Int),List[Int]]() ++
(for(x <- 0 to 8 ; y <- 0 to 8) yield {(x,y)-> (1 to 9)})
10
}
}
To reproduce:
Create a new object in a Scala project and add the following code. Save and eclipse will freeze without error message or console print out.
import scala.collection.immutable.HashMap
object SudokuSolver {
def solve(board:List[List[Int]]) = {
val state = HashMap[(Int,Int),List[Int]]() ++
(for(x <- 0 to 8 ; y <- 0 to 8) yield {(x,y)-> (1 to 9)})
10
}
}
Leave a comment
on 2010-08-18 00:11 *
By Mirko Stocker
Pasting the code into the Scala REPL also causes it to hang, so that seems to be a scalac bug.
And also when compiling using command line scalac. Ticket in the EPFL track here,
http://lampsvn.epfl.ch/trac/scala/ticket/3774
Closing as invalid here ... follow #3774 in the EPFL track for updates.
http://lampsvn.epfl.ch/trac/scala/ticket/3774
Closing as invalid here ... follow #3774 in the EPFL track for updates.