Fork me on GitHub
#cider
<
2021-03-12
>
Casey14:03:29

How can I teach cider that https://github.com/ptaoussanis/encore/blob/master/src/taoensso/encore.cljc#L131-L147 is like clojure.core/if-let (or perhaps rather like clojure.core/let ) ?

bozhidar14:03:45

I see it already has indent metadata. What's the issue then?

Casey15:03:23

Geh, you're right. At first it wasn't indenting properly. Restarted emacs and it's behaving properly now 😕

Casey15:03:07

Hm I wonder if it was a multiple repl thing. I've sometimes got several repls open, and it seems the cider-eval-* commands have an affinity for the last open repl window. Is there some sort of streamlined workflow for targeting a certain repl, without switching to its buffer and back?

bozhidar15:03:08

There are some issues with the multi-REPL handling right now. It's on my todo to fix them (and maybe bring back the old mode of operation when you could just assign a fixed REPL to which to route all evaluation commands), but I've been super busy lately.

❤️ 3
blak3mill3r01:03:02

My favorite old feature... I have some dirty hack that emulates it

blak3mill3r01:03:24

One repl per emacs instance, the target of all evals

blak3mill3r01:03:49

cider thank you, Bozhidar, for making such a power tool!

bozhidar08:03:19

Thanks! In hindsight I think that adopting Sesman was a huge mistake, but unfortunately it's not easy to undo it. It was supposed to make working with multiple REPL easier, but clearly it made it everything more complex. 😞

blak3mill3r21:03:18

It was a nice idea to be able to send forms to the right repl for eval... but I would sometimes cider-jump-to-def into some library code in a jar, then turn off read-only-mode and muck with it and eval it... and the introduction of sesman made it annoyingly tell me that it didn't know where I wanted to eval that, even when there was only one option

bozhidar09:03:46

Yep, in hindsight sesman created more problems than it solved. If I had more time on my hands I probably would have removed it by now.