CTRL-C crashing REPL in hot loop

I experienced this issue on Julia 1.8.2 (Windows), with a fairly complex Dash app (+ DataFrames, CSV and other packages in an environment).
It even happend with a hot loop:

while true
end
# CTRL-C

This kills the workflow completely because everytime I change some code and I need to run the app again the REPL crashes and I have to wait for precompilation every time. Julia 1.7.1 did not have this issue. Any workarounds?

Try calling yield() every once in a while to give the scheduler a chance to catch the ctrl-c exception.

1 Like

Look at the sigint functions in the docs here (scroll down).

Haven’t tried it, but looks promising.