Fork me on GitHub
#cider
<
2023-02-02
>
Chitradeep Dutta Roy14:02:28

Hi I am both new to clojure and also CIDER. For experimenting I keep a project skeleton with clojure.tools.dep as dependency as a :dev alias for hot-loading stuff. I am looking for a way to :require it under user namespace when I launch a repl for the project with cider-jack-in. I have been able to launch a repl with the :dev alias using .dir-locals.el but can't figure out how to :require add-libs into user namespace. I have even tried creating a dev/user.clj file but it doesn't execute when I launch with the :dev alias

Chitradeep Dutta Roy14:02:11

Nevermind the issue was a spelling mistake, I was writing "extra-path" instead of "extra-paths" in the deps.edn.

Patrick Brown16:02:51

Every time I try to take from a deferred in manifold my cider repl blocks and I have to cider-interrupt. I'm using cider-connect to a standard nrepl. Everything is fully functional evaluating at the command line with the repl 'clj' provides me. Any info on how I'm futzing this up would be real cool of you.

Patrick Brown16:02:23

I should add more context. That message was woefully baren. I do not block when I eval with cider-eval-last-sexp-in-buffer-as-current-region. I only block when I want to see the result in the repl buffer or in that little message next the the function when I do cider-eval-last-sexp or cider-eval-last-sexp-to-repl CORRECTION: Sometimes it blocks on eval-ls-as-cb and sometimes it does not. It most definitely blocks as all times when I try to access the value on the stream i.e. @(s/take! s) blocks pretty much always, maybe not the first time in a fresh repl. (s/take! s) will print to the buffer, but it's help is limited because the response in <<..>> (this is expected behavior.)

Patrick Brown17:02:25

O.K. So, I think I've got a handle on what's up. It's a cider-interrupt thing. And largely my confusion was brought about by being dumb. If I try to take from an empty stream it hangs. I can expect that. But cider-interrupt only gives me the appearance of interrupt. I've still got a process open or something like that and any subsequent calls of any kind to the same channels hang. Is this expected? I've got to manually call (s/close! s) and re-eval things. Maybe I should be in #C02H9GF74CF. I'm confused, any insights?