-
Notifications
You must be signed in to change notification settings - Fork 175
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
How to use PureConfig in Scala 3? #1330
Comments
I'm attempting the same thing. I note that on Maven, So my conclusion is that maintainers are in the process of converting the library but aren't done yet and we'll either need to get involved or be patient. |
@ruippeixotog Does #1082 accurately describe what's holding up a Scala 3 version of |
Hey everyone! #1082 describes the shortcomings of our project structure, which isn't very user-friendly when it comes to Scala 3. However, while #1082 makes things somewhat harder, I don't think it's the main reason why we don't have Scala 3 has built-in support for type class derivation, PureConfig has some early support for it, and I think that's the recommended way from now on - meaning that we'll probably never have some tl;dr: you'll have to start using |
I am starting to port coulomb-pureconfig into the Scala 3 world, and I'm trying to figure out what approaches are currently available to me. My main interest is coming up with ConfigReader and ConfigWriter for the following sealed hierarchy IIUC, one can do However Method-1 (again, IIUC) is not yet supported in scala-3 because it makes use of a So I wanted to ask, can I make use of Method 2 in scala 3 via (Method-3 makes use of shapeless, which I want to avoid since its relation to scala-3 is not yet very well defined) |
Followup on my comment above, the answer is "yes, Method 2 works!" |
Is not having a This difference is also not trivial, it means that not only do you have to have separate variations If someone was to solve #1082 and also provide a |
Do you think putting note about this in getting started would be helpful? I can create PR but need just acknowledge. |
Can this be added to the quick start of the documentation in the meantime? I think it would be helpful for Scala 3 users to figure this out without having to dig through issues to get it to work :) If you give me the go I'm willing to draft a small PR to add ~5-10 lines to the docs (quickstart and readme.md) saying the users need to add |
I'm happy to review PRs to improve documentation, @ChidiRnweke. Thanks for helping! |
The (short documentation) PRs have been here for a while, can you merge it if you have the time? Thanks in advance :) |
Finally done! |
Hi 馃檪
I couldn't find an answer, so I hope it's okay I'm asking here.
I'm migrating a project to Scala 3.1.2, and have this line in my
Dependencies.scala
:When I try to compile using SBT, I get an error
Error downloading com.github.pureconfig:pureconfig_3:0.17.1
because it's not found.My
resolvers
look like this:What am I missing?
Thank you very much!
The text was updated successfully, but these errors were encountered: