Georgi Krastev
Georgi Krastev
@einholen can you try the latest release?
I would suggest something more general again 😄 https://github.com/softwaremill/magnolia/pull/279#issuecomment-766475143
I think that could work in Scala 3 where we have more options (by passing inline parameters and such) but not so much in Scala 2 where we can only...
> I think the discussion is not really about whether to use annotations or not, but rather how configurable this behavior is. And probably also about which version (Scala 3...
> Wait a minute, how is it possible to read value-level elements e.g. final val minFields = 0 from CsvConfig inside of the macro? That makes it a constant with...
Oh you want to have it implicit? In my imagination it would just be an argument to the macro like `Magnolia.genWith[A, MyConfig]`
Spurious issue means it's probably cause by caching. And indeed when I think about it, caching assumes `Typeclass[T]` is the type returned from `gen`. This kind of usage breaks the...
Could you post the full tree output by `@debug`?
If you don't want to pull shapeless just for that you can use a simple trick (`Refute`). See for example in `kittens`: https://github.com/typelevel/kittens/blob/master/core/src/main/scala/cats/derived/package.scala#L34-L36 `Refute` is also available in shapeless, but...
It should be simpler than that - use `inferImplicitValue` with `silent = false` and catch the error. I'm not sure if this would slow us down though.