Closed counter2015 closed 2 months ago
We'll need to minimize this to an example without the external dependency. @counter2015 would you be able to help?
I'm not sure where is the root cause. But I have tried on 2.13.14, it has same problem.
copy the method body?
After coping import coursierapi.shaded.coursier.util.shaded.org.jsoup.internal.StringUtil
and coursierapi.shaded.coursier.util.shaded.org.jsoup.helper.Validate
to java source of the project directory without the external dependency , the code compiles.
It seems not only method body which makes compiler crashed.
That maybe related jar reading
That maybe related jar reading
It might, although the crash happens somewhere in the typer... 🤔
The error message from Scala 2 (which also crashes) is maybe more useful
No RuntimeVisibleAnnotations in classfile with ScalaSignature attribute: package object coursier
It's a broken assumption in the classfile. Maybe there's something special in the build of the referenced dependencies (i see shaded
).
Compiler version
Scala 3.4.2, JVM (17)
Minimized code
Output (click arrow to expand)