You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long expressions like one in the example below result in java.lang.StackOverflowError in typechecker. Reproducible with scala 2.10, 2.11 and 2.12.
Adding something like -Xss32m to scalac.bat would help.
I'm a bit tempted to close this with our usual verbiage about how we consider it normal that compiling some kinds of code may require giving the compiler additional stack.
But perhaps long varargs calls like this could actually be fixed not to require so much stack? doh I misread
This is not a long expression but a string. (Type pun alert.) If you construct x op y op z op ... then you are currently out of luck. The interpolator was improved to handle a gazillion exprs.
Ah, I see I looked too quickly. Ok, closing then, as the AST is in fact that deep. If this is automatically generated code, it shouldn't be too tough to find a different way to write it. And if it's handwritten code, ditto.
Or just give the compiler more stack... lots of people have needed to do that and have done it.
Long expressions like one in the example below result in java.lang.StackOverflowError in typechecker. Reproducible with scala 2.10, 2.11 and 2.12.
Adding something like -Xss32m to scalac.bat would help.
The text was updated successfully, but these errors were encountered: