-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
StackOverflowError generating ScalaCheck Aribtrary with magnolia on Scala 3 #20230
Comments
After looking at this more since i have 105 that extend event but only 61 lines defining them with derived it made me add I think am running into softwaremill/magnolia#464 Just strange that it made me add some but not all and then it recurses on itself. |
Now I'm getting a different problem now I added them all:
|
Yeah, still haven't found a solution, I moved the arbitraries to different objects and also tried auto-derivation. |
I tried to use https://github.com/martinhh/scalacheck-derived as well but it is giving me StackOverflowError as well. |
Does giving the compiler more stack make the problem go away? See discussion starting at #20152 (comment) |
@SethTisue yes, this fixed the issue. Thank you very much! |
@SethTisue it's still a bit strange I have to autoDerive more than just the event, I ended up having to autoDerive 27 other case classes and one for cats NEL which is expected. Seems like the autoDerive of the case classes could be done for me automatically if this were truly |
sounds like something you could potentially take up with the users and/or maintainers of the libraries in question |
Compiler version
compiler version: version 3.3.3
cross compiling for both 3.3.3 and 2.13.13
compiles for 2.13.13 using macro library not available in 3
trying to use magnolia and has worked on smaller examples but failing with the below on more complex examples:
trying to derive ScalaCheck Arbitraries with Scala 3
Event is basically a sealed trait and has a 105 case classes which extend it and includes case objects as well with one of 2 values in one of the events.
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: