Skip to content
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

support for Scala 3? #5

Open
axb21 opened this issue Aug 25, 2022 · 3 comments
Open

support for Scala 3? #5

axb21 opened this issue Aug 25, 2022 · 3 comments

Comments

@axb21
Copy link

axb21 commented Aug 25, 2022

I guess this is more of a question than an issue, but I was wondering if you have any plans to port this lovely library to Scala 3. Thanks!

@axb21
Copy link
Author

axb21 commented Aug 25, 2022

Oops, I probably should have noted that this works (for me) in a scala 3 project to make sbt stop complaining:

        ("io.github.kitlangton" %%% "formula" % "0.1.0").cross(CrossVersion.for3Use2_13) excludeAll(
          ExclusionRule(organization="org.scala-js",name="scalajs-dom"),
          ExclusionRule(organization="app.tulz",name="tuplez-full-light"),
          ExclusionRule(organization="com.raquo")
        )

However that does not end the problems because formula is using Scala 2 macros and my scala-fu is not powerful enough to tell if there's a workaround. Even so, my understanding is that this CrossVersion stuff is meant to ease migration, and not meant as a long-term solution. Hence the question/issue!

@kitlangton
Copy link
Owner

I'd totally be open to this, yet I don't have time at the moment to implement it myself. The macro magic is all done via Software Mill's Magnolia library, which makes it relatively easy to implement macros in Scala 3 and 2. Certainly better than if it had to be done by hand :D

@axb21
Copy link
Author

axb21 commented Jan 25, 2023

Time, yes, who among us has any of that anymore? I cloned this code so that I could leave it open and poke at it now and then, but so far I have not been able to get the project compiling with scala 3. I never did dig into how Magnolia works, so for now I'm groping and hacking. I should probably read the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants