1
votes

I am importing a Scala project after building it using sbt, in sbt library dependencies are json4s-native & json4s-jackson...

After building the project using sbt eclipse while importing it in Eclipse it gives following error:

Error in Scala compiler java.lang.StackOverflowError

This screen comes:

This screen comes

& then this:

& then this:

Scala version: 2.11.7

Log:

!ENTRY org.scala-ide.sdt.core 4 0 2017-09-08 12:42:02.495 !MESSAGE Error in Scala compiler
!STACK 0
java.lang.StackOverflowError
    at scala.tools.nsc.typechecker.Typers$Typer.checkDead(Typers.sc‌​ala:111) 
    at scala.tools.nsc.typechecker.Typers$Typer.typedSelectOrSuperC‌​all$1(Typers.scala:4‌​812)
    at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Ty‌​pers.scala:5344) 
2
See Error Log view for detail (stack tracke). Since it is an issue of the Scale compiler, which Scala version do you use and with which code does the error occur (show us a minimal, complete, and cerifiable example)?howlger

2 Answers

3
votes

Adding following parameter to eclipse.ini worked: -Xss100m

1
votes

This seems to be a Scala compiler bug (not Eclipse related):