-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interrupting the repl #2068
Comments
Thanks for pointing this out, @seebs! You are very welcome to have a look at the documentation and REPL Ux, and file PRs addressing this. Some things to consider for you (or anyone taking it on):
Cheers! |
Thanks! I did in fact look in the docs for "interrupt" a bit, but apparently I did not look in them enough. |
I don't think it is mentioned in the docs. You should have searched the command palette instead. 😄 |
Huh. I do "calva: inte" in the command palette and don't get any matches. Calva claims to be version v2.0.331, if that matters. |
I'm guessing you haven't connected a REPL. Otherwise we might have a bug. |
! Right you are. I suspect I broke it, sent a SIGINT to the process because someone said ^C had worked in something else so I thought "oh, maybe it traps sigint", then searched the palette for "interrupt", didn't find it, restarted the repl... |
@PEZ Might the interrupt command be a good thing to include in the Getting Started REPL? It could include some code that when evaluated, doesn't terminate, and then instruct the user to run the interrupt command. |
@bpringe Indeed! |
If you are a newbie to clojure, it's easy to accidentally write something that becomes an infinite loop. If you try to evaluate it in the repl... Now what? Some REPLs apparently allow ^C to interrupt an evaluation, without killing the entire REPL process and losing its context. I can't tell whether Calva does, but if it does, I couldn't find out how by looking in the documentation.
It feels to me like "how do I stop this" should be prominent in the documentation, we've been having problems with runaway processes since Fantasia. :)
The text was updated successfully, but these errors were encountered: