etaty / rediscala

Non-blocking, Reactive Redis driver for Scala (with Sentinel support)
Apache License 2.0
790 stars 142 forks source link

No ByteString deserializer found for type A. Try to implement an implicit ByteStringDeserializer for this type. #192

Closed abhsrivastava closed 6 years ago

abhsrivastava commented 7 years ago

I have written this code

`import java.io.{ByteArrayInputStream, ByteArrayOutputStream}

import akka.actor.ActorSystem import akka.util.ByteString import com.sksamuel.avro4s.{AvroInputStream, AvroOutputStream} import redis._

import scala.concurrent. import scala.concurrent.duration. import scala.concurrent.ExecutionContext.Implicits.global

/**

case class Foo(name: String) object Foo { implicit val fooAvroSer: ByteStringSerializer[Foo] = new ByteStringSerializer[Foo] {...} } implicit val fooAvroDeser: ByteStringDeserializer[Foo] = new ByteStringDeserializer[Foo] {...} } }`

But you can clearly see that I am explicitly passing the implicit using implicitly as a second parameter. So the error message is wrong. it is unnecessarily forcing me to declare a variable