geotrellis / maml

Map Algebra Modeling Language: It's what we and whales are.
https://geotrellis.github.io/maml/
Apache License 2.0
16 stars 10 forks source link

Use methods to create key decoders #79

Closed moradology closed 5 years ago

moradology commented 5 years ago

This absolutely baffling error appeared downstream after bumping to circe 0.11: java.lang.IncompatibleClassChangeError: class com.azavea.maml.ast.codec.MamlUtilityCodecs$$anon$1 has interface io.circe.KeyDecoder as super class... The changes introduced in this PR are an attempt to address that issue by avoiding the manual construction of trait instances and delegating that work to some circe helper functions.

It is unclear why this should work, but it appears to do the trick.