-
Notifications
You must be signed in to change notification settings - Fork 407
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
Scala Native 0.4.0 #752
Scala Native 0.4.0 #752
Conversation
Asked about it here https://gitter.im/scala-native/scala-native?at=600a8bf1753011449b0bfbf8 |
Wild speculation: maybe because most ScalaCheck tests are actually |
@larsrh It should. The FWIW it also fails with classes. Notice that manually annotating all test classes/objects makes it work, but I don't think that's a viable solution. |
The only caveats are about nesting those annotated objects/classes inside other classes or lambdas, but these are plain top-level objects/classes so it should just work. Reading through the implementation seems to confirm this... |
@larsrh fixed! It was an issue with the fully qualified name which lacked the final |
Any god to pray to run the CI? It seems it didn't like my force push 😅 |
@larsrh one option would be to merge (using the rebase option to keep the history linear) so that my commits end up onto your PR (I've already targeted the right branch). Maybe that will wake the CI up |
Patch to #751 to make it compile, it still crashes due to reflective instantiation of the test classes.
Stack trace
[error] scala.scalanative.testinterface.common.RPCCore$RPCException: java.lang.Exception: loadable module not found: org.scalacheck.NoPropertyNestingSpecification
[error] at scala.scalanative.testinterface.common.RPCCore.$anonfun$handleMessage$4(RPCCore.scala:66)
[error] at scala.Option.foreach(Option.scala:407)
[error] at scala.scalanative.testinterface.common.RPCCore.$anonfun$handleMessage$1(RPCCore.scala:64)
[error] at scala.scalanative.testinterface.common.RPCCore.$anonfun$handleMessage$1$adapted(RPCCore.scala:43)
[error] at scala.scalanative.testinterface.common.Serializer$.withInputStream(Serializer.scala:51)
[error] at scala.scalanative.testinterface.common.RPCCore.handleMessage(RPCCore.scala:43)
[error] at scala.scalanative.testinterface.NativeRunnerRPC.$anonfun$runner$1(NativeRunnerRPC.scala:29)
[error] at scala.scalanative.testinterface.NativeRunnerRPC.$anonfun$runner$1$adapted(NativeRunnerRPC.scala:29)
[error] at scala.scalanative.testinterface.ComRunner$$anon$1.run(ComRunner.scala:60)
[error] Caused by: java.lang.Exception: loadable module not found: org.scalacheck.NoPropertyNestingSpecification
[error] at java.lang.Throwable.fillInStackTrace(Unknown Source)
[error] at org.scalacheck.Platform$.$anonfun$loadModule$1(Unknown Source)
[error] at org.scalacheck.Platform$$$Lambda$1.apply(Unknown Source)
[error] at scala.Option.getOrElse(Unknown Source)
[error] at org.scalacheck.Platform$.loadModule(Unknown Source)
[error] at org.scalacheck.ScalaCheckRunner.rootTask(Unknown Source)
I'm a bit puzzled, since it looks like the test classes seem be erased at runtime, despite their superclass
Properties
being annotated with@EnableReflectiveInstantiation