Closed Quafadas closed 1 year ago
Removing import OptionPickler.{*, given}
should fix your problem.
A minimal repro
case class TopLevelElement() derives upickle.default.Reader
import upickle.default.given
val x = implicitly[upickle.default.Reader[TopLevelElement]]
To fix
case class TopLevelElement() derives upickle.default.Reader
val x = implicitly[upickle.default.Reader[TopLevelElement]]
In general you should not need to blanket import things like that
The error message is still a problem and should be fixed
Many thanks!
I'm not sure about a better issue title;
There was a brief discussion on discord which lead to this gist;
scala-cli run https://gist.github.com/Quafadas/b43f74ce8473060f18aba4da49447799
As far as I can tell, the key difference is using an OptionPickler (it follows the definition from the test suite) to read JSON which is not encoded as an array. However, I am not able to infer much from the error;