Open megri opened 2 years ago
It's really hard to say what the problem could be here without a proper minimization without external dependencies. This could even be a bug in flinkadt
or magnolia
itself
It's really hard to say what the problem could be here without a proper minimization without external dependencies. This could even be a bug in
flinkadt
ormagnolia
itself
I reported the problem with findify/flinkadt to start with but they thought it might be a compiler error too.
What makes me think it may be a compiler problem is prominence of dotty.tools.backend.jvm.BCodeBodyBuilder
references in the stack trace.
Perhaps macro- and magnolia-references are excluded due to the way they work with compile-time code generation? I could try to dig into this some more but I'm not sure how I enable deeper traces during compilation.
Hi, I'm getting the same problem with Java annotations. Please see here simplified code of what magnolia is doing with scala 3 macroses: https://github.com/scala/scala3/issues/19303#issuecomment-2295290329
Compiler version
3.1.3. Seems to affect Scala 3+ in general
Minimized code
I tried minimising the issue by reimplementing the
DataTypeHint
interface and other dependencies but it wouldn't trigger the crash. Using scala-cli was the next best thing.Bugreport.scala:
Trigger the issue by issuing
> scala-cli compile Bugreport.scala
Output (click arrow to expand)
Possibly related to the mechanics mentioned in https://github.com/lampepfl/dotty/issues/12840