Fork me on GitHub
#cider
<
2022-12-22
>
Matti Uusitalo11:12:18

I've been able to jack in to clj programmatically like this:

(with-temp-buffer
   (cider-jack-in-clj '(:project-dir "~/projektit/foo")))
I can't seem to do the same with clj&cljs projects as it asks for the profile that figwheel-main should use. Is there a noninteractive function that I could use? In my project I need five clj repls and two of them also cljs repl. I built a command that starts all the clj repls but haven't been able to launch the cljs ones

magnars11:12:16

Set the cider-default-cljs-repl variable to avoid the question.

thanks 1
Matti Uusitalo14:12:40

On that note:

(defvar jogo3000-start-repls-queue '())

(defun jogo3000-start-repls ()
  (let ((head (car jogo3000-start-repls-queue)))
    (when head
      (apply head nil)
      (setq jogo3000-start-repls-queue (cdr jogo3000-start-repls-queue)))))

(add-hook 'cider-connected-hook #'jogo3000-start-repls)
I do it like this. The queue holds functions to start the repls using the technique above. For some reason starting the repls in parallel didn't work out properly. Should it work?

jmv17:12:17

i am having some odd behavior with the cider error buffer. i have two frames, A and B, with different projects in each frame. i am seeing a situation where all exceptions pop up the error buffer in frame A, which is a pretty jarring transition when i'm in frame B. is there a way to configure the error buffer to stay with the current frame?