-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Second stab at 2.12.4. #477
Conversation
Last time we upgraded to 2.12.4 the CI failed with a missing shapeless implicit error from case-app. I can reproduce this error locally only on the first `sbt compile`. Running the command the seconds time succeeds compilation. I want to see if CI fails again, and investigate if `-YdisableFlatCpCaching` can fix the error.
3e13f0c
to
620c630
Compare
cc/ @alexarchambault have you experienced issues resolving case-app/shapeless implicits when upgrading to 2.12.4? The error is
Full log: https://travis-ci.org/scalacenter/scalafix/jobs/312965607#L660 Most notably, the publishLocal := publishLocal
.dependsOn(
publishLocal in diff212JVM,
publishLocal in core212JVM,
publishLocal in reflect212,
publishLocal in cli212)
.value, It's quite tricky to reproduce locally, but I think I've validated that the error is not caused by scaladoc. My best guess is that it's related to |
@olafurpg Nothing specific to 2.12.4. But I remember having manually written some |
With -Xlog-implicits I was able to track down that the inductive derivation for the case-app parser was failing with a stack overflow ``` [info] hasMatchingSymbol reported error: exception during macro expansion: [info] java.lang.StackOverflowError [info] at scala.tools.nsc.typechecker.StdAttachments.isMacroImplRef(StdAttachments.scala:153) [info] at scala.tools.nsc.typechecker.StdAttachments.isMacroImplRef$(StdAttachments.scala:153) [info] at scala.tools.nsc.Global$$anon$1.isMacroImplRef(Global.scala:458) [info] at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1175) ``` This could offer an explanation why 2.12.4 is a regression, since the stack size might have changed.
Thanks @alexarchambault I debugged the issue with -Xlog-implicits and that revealed a stack overflow error
I bumped up the stack size in .jvmopts and it seems to have fixed the issue. Someone is catching fatal errors in the compiler 😭 Happy we can at least we can upgrade and 2.12.4 is not to blame 😄 |
Last time we upgraded to 2.12.4 the CI failed with a missing shapeless
implicit error from case-app. I can reproduce this error locally only on
the first
sbt compile
. Running the command the seconds time succeedscompilation. I want to see if CI fails again, and investigate if
-YdisableFlatCpCaching
can fix the error.EDIT,
-YdisableFlatCpCaching
did not seem to fix the error. Let me try and remove ArgParserImplicits.