Closed
Description
We're using the scrooge-sbt-plugin
to generate Scala classes from Thrift definitions, and it looks like that plugin and sbt-buildinfo
have a bad interaction. With either of them disabled, things work, but with both enabled, a "X is already defined as case class X" error occurs (even if I change the name from the default 'BuildInfo').
Should be easily reproducible from this commit:
guardian/friendly-tailor@aa85aad
> compile
[info] Compiling 6 Scala sources to /home/rtyley/development/friendly-tailor/target/scala-2.11/classes...
[error] /home/rtyley/development/friendly-tailor/target/scala-2.11/src_managed/main/sbt-buildinfo/Info.scala:6: Info is already defined as case class Info
[error] case object Info {
[error] ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 2 s, completed 29-Apr-2016 13:45:48
Metadata
Metadata
Assignees
Labels
No labels