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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
scala-native Scala 3 support #2097
Comments
@xuwei-k Fyi we are unable to release Scala 3 build for scala-native yet, but I have bumped up scala-native used to build artifacts for 3.2.11 and staged them. We'll work on add on build for Scala 3 scala-native for 3.2.11. |
@xuwei-k Unfortunately this is now blocked by scala-xml 2.0.1 not being published for Scala 3 native: https://mvnrepository.com/artifact/org.scala-lang.modules/scala-xml @SethTisue Any chance the scala-xml build for Scala 3 native can be published? Thanks. |
@xuwei-k @SethTisue Seems like this needs to be completed first: |
I can't really afford to learn about Scala Native details myself, but I can certainly roll a scala-xml release once Yoshida-san and/or other volunteers finish that PR. |
There's a PR now for scala-xml, just waiting to be merged scala/scala-xml#592 |
@cheeseng May I ask you to move forward here? Thanks! |
Here it is: #2114 |
@catap Sure, I'll work on it, thanks for informing! |
@catap I have staged 3.2.10 that includes scala-native build for scala 3, but when I tried to use it from scalatestplus-scalacheck I encountered the following error:
Do you have any idea how we can fix this? |
@cheeseng may I ask you which commit / branch have you used to test it? Because it is a things that blocking me I'd love to help :) |
@catap Sure, I am staging 3.2.12 from this branch of my fork, in this PR: and the exact branch URL is: https://github.com/cheeseng/scalatest/tree/feature-3.2.12-rel It is late here so I'll have to call it a day, hopefully we can continue to publish 3.2.12 that includes a working scala-native build for scala 3 tomorrow! Thanks! :) |
@catap Just fyi you may run the scala-native for scala 3 tests by:
which seems to run the tests fine, but after I staged it and use it from scalatestplus-scalacheck it encountered the above error, same build for scala 2.12 and 2.13 did work though. I read from other discussion that it may be due to osgi, that does match with the breaking behavior of happening only after being staged to Sonatype though. cc @LeeTibbert |
@cheeseng the first idea is cheeseng#4 can I ask you to try it? |
@catap Sure I'll try it a try today, thanks for the PR! |
@catap Hmm, unfortunately it still failed with the same error:
Build for Scala 2.13 and 2.12 still works though. |
@cheeseng can you share exactly command which have you used to have this error? |
@catap Yes sbt scalatestTestDottyNative/test should work fine, I hit the error only when I tried to use the artifacts I staged in Sonatype from scalatestplus-scalacheck in this branch: https://github.com/scalatest/scalatestplus-scalacheck/tree/feature-3.2.12.0-rel to get the error you can run:
To test that you'll need to add the staged repo in your ~/.sbt/ , can I email the repo urls to kirill@korins.ky ? |
Yep, this is my email, feel free to use it |
@catap I just sent you the repo url, can you check your inbox? |
@cheeseng on my machine I have:
=> seems you have published wrong paths. Try to understand why. |
@catap I think I found the cause, for Scala 3 it seems to have this extra package in the compiled classes: I'll include it in the osgi export package list and try again, I'll drop the staged repo I sent you earlier. |
@catap Fyi seems to fix with the following commit: Had to use wildcard for the osgi export package settings to include the generated package mentioned above, a bit weird that it is not needed for scala 2 build though. Anyway I'll re-stage 3.2.12 release today, as I think scala-js needs this release also. Thanks for your help! |
@cheeseng I glade that you figured it out. I just re-published it from scratch on my machine to start digging :) |
@cheeseng Can this issue be closed now? It seems to be solved by scalatest |
Build included in 3.2.12. Thanks. |
馃檹
The text was updated successfully, but these errors were encountered: