This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
When running a lengthy sequence, eg a map
I have issues with Interrupt current evaluation: When invoked it only interrupts one 'pass' of the map function. Then it jolly continues to the next one. Is there a way to interrupt map
over the whole sequence? I am using Calva with babashka in this case
But you can’t interrupt an evaluation since Thread/stop is deprecated in native image and also in JDK21 onwards
My way around it for now is to kill the repl and reevaluate everything, a rather nuclear approach... There should be a more graceful way to interrupt the map function, should't it? )
Here is the observation. When writing in a file in map
over a sequence an exception (eg file not found) would effectively interrupt the whole map sequence. I would want to achieve the same with Calva interrupting evaluations
You are welcome to file an issue about that. Though I think it is best directed at nrepl, where there might already be one. Once someone figures out if there is a solution, and what it would be, we can implement that in Babashka as well.
This used to work in nREPL but will stop working in JDK21+ upon which bb is also based
There seems much fuss about JDK21 lately, and not all of it is about improvements : )
Do you mean smth similar to this issue ? https://github.com/nrepl/nrepl/issues/296
I added an issue on Calva about it as well: https://github.com/BetterThanTomorrow/calva/issues/2324