Fork me on GitHub
#cider
<
2021-12-08
>
yubrshen02:12:57

How can I tell if a long-running evaluation finishes? In my emacs/Doom configuration, the evaluation of expression in cdier is asynchronous, when I submit to evaluate, I can still continue to use the emacs, but now, I have no way to tell if the evaluation completes or not. What would be the way to tell? Thanks!

yubrshen02:12:34

It seems that once the evaluation is done, there will be a indication in the mini-buffer. Just trust, and be patient.

anonimitoraf02:12:45

Return value gets shown like this?

anonimitoraf02:12:43

Also, in the latest doom version, you should see a loader in your CIDER repl's modeline e.g.

(require '[clojure.core.async :as async])
(do (async/<!! (async/timeout 5000))
    (println "done"))

vemv03:12:38

sounds like a Turing-undecidable problem to me :) in practice you can wrap a slow sexpr in println so that it goes to your repl eventually, which seems a little more durable than the UI widget. You also can inspect thread dumps (`Ctrl+\` , yourkit etc) and see if there's a thread named nrepl-worker-foo that is currently doing something related to your sexpr.