Skip to content

Failing test for macro with classes in a different file#506

Draft
martinw-ct wants to merge 1 commit intomainfrom
cut-adhoc-json-macro-across-files
Draft

Failing test for macro with classes in a different file#506
martinw-ct wants to merge 1 commit intomainfrom
cut-adhoc-json-macro-across-files

Conversation

@martinw-ct
Copy link
Contributor

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 martinw-ct changed the title Failing test for the issue Failing test for macro with classes in a different file Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant