sphere-scala-libs icon indicating copy to clipboard operation
sphere-scala-libs copied to clipboard

Failing test for macro with classes in a different file

Open martinw-ct opened this issue 2 years ago • 0 comments

In Sphere I discovered the macro doesn't work across files 🤔

For now just a failing test to demonstrate the issue, perhaps I'll dig into it on a tech day to fix it.

Specifically it's not correctly detecting the subtypes

[info] /Users/martinwelgemoed/commercetools/sphere-scala-libs/json/json-derivation/src/test/scala/io/sphere/json/MultiFileJSONSpec.scala:12:40: io.sphere.json.AnotherFileExample.Bug Subtypes: class Spider
[info]       implicit val bugJSON = deriveJSON[Bug]

martinw-ct avatar Jun 22 '23 15:06 martinw-ct