-
Notifications
You must be signed in to change notification settings - Fork 533
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
Compile error when encode a case class #34
Comments
Oh, I forgot it, when decode a case class like it provide above, it used to provide some Decoder of the class that defined in properties sometimes(Just sometimes and I don't know when). It looks like the same as the json encode problem above. |
Thanks for the report! I'm at a conference today but I'll take a look this evening. |
@travisbrown I tried to port my latest developments from argonaut-shapeless here, see https://github.com/alexarchambault/circe/commits/topic/generic. These seem to fix this issue, but rely on new developments in shapeless (milessabin/shapeless#435), not merged in mainline yet. I've been trying to fix it without overhauling the generic module, without success (fixing it was breaking other things), but hopefully you'll have more luck than me at this. I tried to use export-hook too, which didn't work either, but I haven't investigated much the problem. |
Thanks, @alexarchambault! I'd like to spend a little bit of time understanding what's going on in your I've also just created #36 and #37 to highlight some issues related to |
The error message situation is a little better after #43, but it doesn't fix this and the message still isn't great: // Exiting paste mode, now interpreting.
<console>:38: error: could not find implicit value for parameter e: io.circe.Encoder[Bbbbb]
kk.asJson
^ |
JValue.asInt/getInt methods circe#34
I don't find the reason with the bug, just provide all I know.
It seems that sometimes I have to provide implicit val aabbcc = Encoder[Aaaaa], and it looks like that complete always successfully when I provide the implicit val aabbcc = Encoder[Aaaaa], and sometimes fail when I just type kk.asJson without implicit.
Any fix or suggest?
The text was updated successfully, but these errors were encountered: