Hi, I'm having this error when trying to update to the last version:
[error] src/main/scala/Main.scala:8:23: No matching apply/unapply found: String
[error] Macros.handlerOpts[Foo, AutomaticMaterialization]
[error] ^
I found that this started on the version 1.1.0-RC5 from reactivemongo-bson-api, in 1.1.0-RC4 it works fine.
It can be reproduced with the following code:
import reactivemongo.api.bson.MacroOptions.AutomaticMaterialization
import reactivemongo.api.bson.Macros
object Main {
case class Foo(bar: Option[String])
def main(): Unit = {
Macros.handlerOpts[Foo, AutomaticMaterialization]
}
}
This fails to compile, but if you downgrade version or remove the Option field, it works fine.
Is this expected and I should be doing it in another way now or is an error?
Thanks!
Manuel