-
Notifications
You must be signed in to change notification settings - Fork 532
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
Maximal number of successive inlines (32) exceeded, Maybe this is caused by a recursive inline method? #2162
Comments
You need to pass it as two separate arguments scalacOptions ++= Seq("-Xmax-inlines", "50") |
Same here, and setting a higher max-inlines parameter didn't fix the issue |
Likely would be helped by a solution to #2126 since there would be fewer inline calls overall |
The example actually has two problems: a) With the pending fix for b) (#2187 ), the code compiles, however:
|
Looks like for all three typeclasses (Codec, Encoder, Decoder), the behavior is: If a product-member is a
If a product-member is a
Note that I'm not sure 100% if such "transitive derivation" is even expected to work (?). If not, then the original example is just not using the library correctly (because it tries to derive a |
@0bon @caenrique As a workaround you can use jsoniter-scala's |
I think this could be closed now - #2258 (and the reference to #2183 (comment)) clarified that
Furthermore, the error message in 0.14.7 is much more helpful:
|
Based off this issue circe/circe#2162 The compiler was also complaining about `with` being replaced by `&` so I've done that.
I am using
deriveCodec
to translate to and from json to ADTs. However, when I started adding Lists to my ADT the compiler did not like it and started throwing errors. See code and error below. I am using Scala 3.2.2.Trying to set
-Xmax-inlines
in the sbt build file gives me[warn] bad option '-Xmax-inlines 50' was ignored
The text was updated successfully, but these errors were encountered: