This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # babashka (7)
- # beginners (218)
- # boot (1)
- # chlorine-clover (2)
- # cider (36)
- # cljsrn (8)
- # clojure (71)
- # clojure-dev (9)
- # clojure-europe (11)
- # clojure-france (1)
- # clojure-italy (5)
- # clojure-nl (5)
- # clojure-uk (24)
- # clojurescript (9)
- # conjure (16)
- # crux (16)
- # cursive (65)
- # datomic (76)
- # devcards (21)
- # emacs (1)
- # etaoin (1)
- # figwheel-main (47)
- # fulcro (37)
- # hyperfiddle (9)
- # java (2)
- # kaocha (1)
- # malli (11)
- # music (14)
- # observability (8)
- # off-topic (32)
- # re-frame (13)
- # reagent (2)
- # reitit (5)
- # ring (3)
- # shadow-cljs (40)
- # slack-help (17)
- # spacemacs (15)
- # tools-deps (5)
Hi everyone; I have a question about the cider debugger and what "stepping in" means... With this code:
(defn a 
(+ 1 1))
(defn b 
If I set up
b for debugging (C-c C-c) and run it, the debugger stops inside of it. In my mind, step in is supposed to let me navigate the instruction pointer into
a instead it steps over it (like I pressed
n for next). Is this expected for cider? From memory, other IDE's seems to allow you to step into functions that have not been explicitly instrumented... What is the expected CIDER behaviour and what are your expectations of what step in means?
Yes, that's expected but might depend on what
a is in particular (I don't know much about limitations though).
It more or less works for me in such scenarios.
the more-or-less is what I'm finding too.. .it's highly inconsistent whether I can step into a fn or not...
I'd like to bind a project-specific Clojure function (e.g.,
integrant.repl/restart ) to an emacs command, so I can bind that to a convenient keystroke. I know there's
cider-run but I need to enter the function name every time and then pick a namespace. is there any way to set up my
.dir-locals.el or otherwise avoid the need for that interaction?
OK, this worked
(defun eucc-reset-project () (interactive) (cider-ensure-connected) (cider-interactive-eval "(integrant.repl/reset)"))
Can the CIDER repl be ‘paused’ , kind of like the way you can pause a unix process with Ctrl-z ?
a unix process is backgrounded with control-z and it keeps working but you can do stuff in the terminal. Can't you just got to a different buffer in emacs? aren't you doing the same thign essentially?
I’m using spacemacs and going through a period of finding out why it gets bogged down when I run my project … and hopefully I can find modes etc to disable for the repl buffer. But until then I’m hoping for a way to tell emacs “stop everything for that buffer for now so I can do other things”
here's a helpful dir-locals.el file
((nil (cider-redirect-server-output-to-repl . nil)))
helpful if you have tons of logging. but the proper answer is configure your logger. log to a file, change the logging level, or just change the expectation that you don't want your repl to get the logs
ok. restart your lein process and have
cider-redirect-server-output-to-repl set to nil
I feel I asked this question before, but I completely forgot how to do this. I need execute a specific Clojure code after cider gets connected/jacks-in, can someone remind me?
There are configs for a reset
((clojure-mode . ((cider-refresh-before-fn . "practicalli.dev/stop") (cider-refresh-after-fn . "practicalli.dev/start"))))
There is a list of all the cider variables on this page https://practicalli.github.io/spacemacs/reference/cider/configuration-variables.html