Re: Is there a way to stop a long running expression in the REPL

2015-02-23 Thread Erik Price
Vim Fireplace supports Ctrl-c without killing its REPL host. Highly recommended if you are a Vim user. e ​ On Sat, Feb 21, 2015 at 7:32 AM, Shawn Rasheed wrote: > If it's the clojure repl this might work: > https://clojuredocs.org/clojure.repl/set-break-

Re: Is there a way to stop a long running expression in the REPL

2015-02-21 Thread Shawn Rasheed
Using Lein 2's REPL, Ctrl-C doesn't cancel the REPL itself. On Sat, Feb 21, 2015 at 4:45 PM, Cecil Westerhof wrote: > Sometimes I execute something that takes to long. With -C I can > cancel it, but this also cancels the REPL itself. Is there a way to > terminate the running command without term

Re: Is there a way to stop a long running expression in the REPL

2015-02-21 Thread Shawn Rasheed
If it's the clojure repl this might work: https://clojuredocs.org/clojure.repl/set-break-handler! On Sat, Feb 21, 2015 at 5:28 PM, Lucas Bradstreet wrote: > Which repl are you using? In lein repl, this does not happen to me, it > just terminates the expression. > > On 21 February 2015 at 19:45,

Re: Is there a way to stop a long running expression in the REPL

2015-02-21 Thread Lee Spector
In case anybody is developing tools for this kind of thing, one of the things I most miss from Common Lisp is the ability to interrupt a running expression AND see the values of locals at the point of interruption. Fantastically useful for debugging. As far as I know there's no environment that

Re: Is there a way to stop a long running expression in the REPL

2015-02-21 Thread Fluid Dynamics
It depends on what REPL/IDE you are using. In Counterclockwise there's an icon on the REPL pane's upper right with a red box near a gear, third from the left, which interrupts the currently running expression. Some other REPL environments provide similar functionality, as other people have noted

Re: Is there a way to stop a long running expression in the REPL

2015-02-21 Thread Cecil Westerhof
2015-02-21 13:28 GMT+01:00 Lucas Bradstreet : > Which repl are you using? In lein repl, this does not happen to me, it > just terminates the expression. > ​I am using: rlwrap java -cp "${CP}" clojure.main --init "${CLOJURE_INIT}" --repl But maybe it is time to switch. ;-)​ > On 21 Februar

Re: Is there a way to stop a long running expression in the REPL

2015-02-21 Thread Lucas Bradstreet
Which repl are you using? In lein repl, this does not happen to me, it just terminates the expression. On 21 February 2015 at 19:45, Cecil Westerhof wrote: > Sometimes I execute something that takes to long. With -C I can cancel > it, but this also cancels the REPL itself. Is there a way to termi

Is there a way to stop a long running expression in the REPL

2015-02-21 Thread Cecil Westerhof
Sometimes I execute something that takes to long. With -C I can cancel it, but this also cancels the REPL itself. Is there a way to terminate the running command without terminating the running REPL? -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups