47degrees / helios

A purely functional JSON library for Kotlin built on Λrrow
https://47degrees.github.io/helios/
Apache License 2.0
169 stars 22 forks source link

Dependencies between generated files fail to resolve #101

Open Octogonapus opened 5 years ago

Octogonapus commented 5 years ago

This generated file (https://pastebin.com/vM1vCkwr) depends on another generated file (https://pastebin.com/2gWXjBbU). Both files are emitted into the same folder on disk, but their package statements differ, causing the former file to need import statements for the encoder & decoder methods in the latter file. Without these import statements, the former file fails to compile.

AdrianRaFo commented 5 years ago

Could you try to build without clean? It seems like this is part of a known issue where we need to look into the dependency graph to generate the code on the right order

Octogonapus commented 5 years ago

I typically don't run clean before I build.