-
Notifications
You must be signed in to change notification settings - Fork 949
Description
Following up on a quick conversation on Gitter, in Metals one of the things we check when we get notified of a build/taskStart
is to see whether or not it's a no-op compilation. You can see this here:
For better or worse, we just check in the message params to see if it starts with Start no-op compilation
. This is Bloop specific at the moment, and you can see where this is being reported in Bloop here:
Within Metals we do various check on this compilation to see if we need to do certain things that can in some situations offer some nice UX and speed improvements. Just to give an example we have a Tree View of all packages, and if it's a no-op compilation we know that we don't need to compute anything new for the tree view. As state, right now this is quite Bloop specific, but it'd be great to expand this somehow so that we could have a more generic approach to know if a compilation is a no-op or not from sbt. I'd love to know if this is possible and something you'd consider to forward somehow in the build/taskStart
. Thanks!