-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
release for Scala 2.13.0-M5 #540
Comments
This is increasingly becoming a blocker for our projects. If any maintainer here could give some guidelines on how to help unblock this, we'd love to be able to help. Thank you! |
To get this done we need to upgrade to fastparse2 (#510), however fastparse2 dropped support for Scala Native (com-lihaoyi/fastparse#215) - to get that done we are awaiting a 0.3.x release which contains the following fix scala-native/scala-native#1429 Alternatives:
|
I'm fine with merging it, but it currently disables Scala Native support.
…On Mon, 11 Mar 2019, 18:21 Dale Wijnand, ***@***.***> wrote:
Thank you for the details, @thesamet <https://github.com/thesamet>! I
think @raboof <https://github.com/raboof> has done that in #541
<#541> (though it still says "not
for merge" - is that still right, @raboof <https://github.com/raboof>?).
Would you be happy to review and merge that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#540 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIDEIWxz5BXxrhRL9Fpv29Abe3cE7ifks5vVpC2gaJpZM4ab30Q>
.
|
I'm working on the Scala 2.13 support. The breaking changes in the collections library force us to make a choice: Potentially the options are not mutually exclusive. I might discover that the code generated via (1) can be applied to older versions of Scala using this compat library. Still investigating. |
For Akka-related projects, we have avoided depending on |
The main issue with generated code is usage of |
scala-collection-compat's binary API is not stable so generated code would be at risk of breaking at runtime if an newer, incompatible scala-collection-compat were present on the classpath. If you'd like help and can point me to some partial progress, I'd be happy to send you possible solutions. |
One question in the meantime. Assume that the generated code has something like this:
The Scala 2.13 code I'd generate would be:
but this won't compile on 2.12. For this specific use case, what would be a good way to generate the same source code for all versions of Scala without relying on |
I think you first exclude some of the known collections ( val c: C[B] = {
val cb = C.newBuilder[B]
for (a <- as) cb += f(a)
cb.result()
} It's not beautiful, but it's the desugared version of what |
I released 0.9.0-M1 with support for 2.13.0-M5. The code generated uses The full changelog note:
|
Thank you, @thesamet! |
@thesamet thank you for adding 2.13 support! We have successfully upgraded Scalameta.
Would you be open to consider using |
Why deviate from what Scala's varargs does (which is |
Do you have a specific reason for why repeated protobuf fields should use the same type as varargs? I think Changing from |
The change is from |
I admit using |
I think that |
I see there were some releases with Scala 2.13 milestones in the past, but none recently. It would be great to start building those (at least
scalapb-runtime
), to be prepared for 2.13 and to allow testing projects that depend on scalapb with 2.13 milestones.Depends on #510
The text was updated successfully, but these errors were encountered: