scalacenter / bloop

Bloop is a build server and CLI tool to compile, test and run Scala fast from any editor or build tool.
https://scalacenter.github.io/bloop/
Apache License 2.0
907 stars 202 forks source link

Allow to cancel run and test #2030

Open tgodzik opened 1 year ago

tgodzik commented 1 year ago

It' already possible to cancel debug session, however it's not possible to stop a running run or test. Since it's highly possible that ScalaCLI and Bloop will be used by scastie we need to provide support for such cancelation.

masonedmison commented 4 months ago

From what I can tell, this still needs to be done. If so, I'd be happy to take a stab at it. Also it appears that #2018 is a duplicate of this.

tgodzik commented 4 months ago

From what I can tell, this still needs to be done. If so, I'd be happy to take a stab at it. Also it appears that #2018 is a duplicate of this.

Sure! The entrypoint for run is in https://github.com/scalacenter/bloop/blob/main/frontend/src/main/scala/bloop/bsp/BloopBspServices.scala#L838

I would first confirm that indeed things are not cancellable, as far as I can see everything is in place to forward any cancel coming to the server to the actual process.