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
Further investigation has revealed that it's actually a problem for all the derived instances. Example failure:
> Exception: java.io.NotSerializableException: cats.derived.ShowPrettySuite$$anon$3
at munit.ScalaCheckSuite.propToTry(ScalaCheckSuite.scala:98)
Caused by: java.io.NotSerializableException: cats.derived.ShowPrettySuite$$anon$3
Decompiling that class:
javap core/.jvm/target/scala-3.1.2/test-classes/cats/derived/ShowPrettySuite\$\$anon\$3.class
Compiled from "ShowPrettySuite.scala"
final class cats.derived.ShowPrettySuite$$anon$3 implements scala.deriving.Mirror$Sum {
public cats.derived.ShowPrettySuite$$anon$3();
public int ordinal(cats.derived.TestDefns$IntTree);
public int ordinal(java.lang.Object);
}
So the issue is that if a type doesn't have a companion object then the Mirror is derived as an anonymous class that is not Serializable.
The most obvious fix is to get Dotty to make these anonymous instances Serializable
The text was updated successfully, but these errors were encountered:
Currently failing in CI
Further investigation has revealed that it's actually a problem for all the derived instances. Example failure:
Decompiling that class:
So the issue is that if a type doesn't have a companion object then the
Mirror
is derived as an anonymous class that is notSerializable
.The most obvious fix is to get Dotty to make these anonymous instances
Serializable
The text was updated successfully, but these errors were encountered: