no implicit values were found that match type io.circe.export.Exported[io.circe.Decoder[T]] · Issue #2008 · circe/circe · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
no implicit argument of typeio.circe.Decoder[com.test.Test[T]] was found for parameter decoder of method convertToObj in objectCirceConverter.
Ifound:
com.test.Test.RcpDecoder[T](
io.circe.Decoder.importedDecoder[T](
/* missing */summon[io.circe.export.Exported[io.circe.Decoder[T]]]
)
)
But no implicit values were found that matchtypeio.circe.export.Exported[io.circe.Decoder[T]].
CirceConverter.convertToObj[Test[T]](strJson)
You use the method converteToObj with type Test[T]. If we look at that method it requires a decoder for Test[T] to be available in scope (implicit).
Earlier in the code you have implicit def RcpDecoder[T: Decoder]: Decoder[Test[T]] = deriveDecoder which says that if I have a decoder for T, I can produce a decoder for Test[T].
But if we inspect the get method you have we can see that there exists no evidence that the T has a decoder available for it.
To fix it you would have to provide that evidence, and that can be done by changing the method signature to one of these depending on you preferred style (you have used both above, for this code they are the same).
Hello,
I have this code and i don t understand why it not working:
When i run it, i have this error :
build.sbt:
Any idea how to solve this?
many thanks
The text was updated successfully, but these errors were encountered: