1

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) 
1
  • 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)? Commented Sep 8, 2017 at 7:51

2 Answers 2

3

Adding following parameter to eclipse.ini worked: -Xss100m

Sign up to request clarification or add additional context in comments.

Comments

1

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

2 Comments

Updated error is: Throwable during asyncExec java.lang.StackOverflowError
Que) Can case class not have more then 22 parameters? Ans) It seems in scala old versions it was restriction, but in 2.11.7 it is not an issue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.