When using the Twitter `Flags` library in a deploy...
# general
g
When using the Twitter
Flags
library in a deploy jar of Scala code, I’ve seen the following error a few times when changing flag names. A clean build causes the issue to go away.
Copy code
Caused by: java.lang.AbstractMethodError: com.slack.Foo$.com$slack$MyBaseClass$_setter_$com$slack$MyBaseClass$$myFlagName_$eq(Lcom/twitter/app/Flag;)V
Have any of the Twitter folks seen issues with
Flags
and pants builds?
a
hey, did you end up getting this figured out? i've had it open as a thread forever but never responded. the conversation around your messages didn't make it clear whether the issue was resolved (unless i'm remembering incorrectly)
g
Talking with Stu this sounds like an issue with zinc incremental compiles. I've since exported the env variable to disable incremental compiles on our CI machines / deploys and the issue has gone away.
This is partly what motivated me to shard our compiles, so CI is actually faster now even though we're no longer doing incremental compiles.
a
i might actually remember him describing that exact issue and it may even have been after talking with you -- lots of really exciting things coming up in the realm of crazy fast, sharded compiles, we're making some decisions about how to improve that performance immensely right now. we'll still be tied to zinc for compilation to runnable bytecode, but there'll be another compiler for other stuff that is being developed by this guy eugene who's great https://github.com/twitter/reasonable-scala
💥 1
got a bit long but: very exciting