oyvindberg/bleep

sourcegen: `BleepVersion.scala:8: BleepVersion is already defined as case class BleepVersion [8:1]`

oyvindberg opened this issue · 1 comments

So source generation generates code, which the compiler somehow meets twice. Subsequent compiles typically work fine.

I have seen this particular error intermittently in Scala 2.x going back a full decade. I have no idea how to diagnose or solve it, but I have stopped using sbt-buildinfo in at least three different professional projects over the years because of this issue. Most of the time it has been the case that compilation with intellij has triggered it while sbt has been unaffected, and now I see it often through bleep, which goes through BSP.

I'm opening an issue to track it and see if there are solutions to be found

Seems to be fixed by #302