Make REPL handle interrupt of running code without killing its process (like in Ammonite) #17871
bjornregnell
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if the REPL could interrupt running code without loosing the current session.
Currently on linux:
Ammonite solves this (perhaps through
sun.misc.Signal
:https://ammonite.io/#Interruptingrun-awayexecutionwithCtrl-C
From Ammonite docs: "The traditional Scala REPL doesn't handle runaway code, and gives you no option but to kill the process, losing all your work. Ammonite-REPL lets you interrupt the thread, stop the runaway-command and keep going."
See also discussion here:
https://users.scala-lang.org/t/c-ctrl-c-closes-repl-expression-interpreter-interactive-loop/7187/8
Beta Was this translation helpful? Give feedback.
All reactions