Open chuwy opened 8 years ago
I'm afraid I'm not sure what is going on there. If you have a minimal runnable example, I may have some time to take a look this weekend.
Re: deleting target
, you may try deleting project/target
Hello @julianpeeters
Here's the repository with extracted configuration, leading to failure: https://github.com/chuwy/avrofail
I don't know if this is supposed behavior, but problem seems gone when I add (scalaSource in avroConfig) := (sourceManaged in Compile).value / "avro"
to my scalifySettings
. It looks like it doesn't change anything in actual generated sources structure, but I don't see above error anymore.
Thanks.
Thanks for the example project @chuwy
Your solution seems to be an improvement, regardless. I don't recall why I left the path ending empty, but now I think it should be:
val outputDir = scalaSource <<= (sourceManaged in Compile) { _ / "compiled_avrohugger" }
(calling the output dir "compiled_avrohugger"
in order to
The downside is that I'm a little busy currently and my queue is out likely two weeks, so even if I got a PR for the work, I still won't be able to publish a new version for a while.
Cheers
We have a custom source generator in our project, which dumps some build info in project sources:
It was working well for a long time, but now (after we added
sbt-avrohugger
) it failscompile
with following error:This problem arise at very weird circumstances - at first run it works fine, but then starts to fail with above error even if I delete
target
directory.