This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-31
Channels
- # announcements (4)
- # babashka (73)
- # beginners (128)
- # bristol-clojurians (1)
- # calva (8)
- # cider (8)
- # clj-kondo (4)
- # clojars (7)
- # clojure (148)
- # clojure-dev (16)
- # clojure-europe (5)
- # clojure-gamedev (1)
- # clojure-italy (10)
- # clojure-nl (7)
- # clojure-uk (57)
- # clojurescript (57)
- # clojutre (1)
- # community-development (2)
- # cursive (7)
- # data-science (1)
- # datascript (5)
- # datomic (9)
- # events (6)
- # figwheel-main (1)
- # fulcro (91)
- # garden (11)
- # graalvm (14)
- # graphql (1)
- # immutant (4)
- # jobs (1)
- # kaocha (33)
- # off-topic (63)
- # onyx (3)
- # pathom (4)
- # re-frame (23)
- # ring-swagger (1)
- # shadow-cljs (49)
- # sql (6)
- # testing (8)
- # tools-deps (45)
- # vrac (1)
- # xtdb (10)
Hey. Trying to dig a bit into the debugger. This file mentions some read-and-instrument
function which I can't seem to find. Are these some old comments? https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/util/instrument.clj#L29
@finn.volkel Yep. The debugger was massively changed here https://github.com/clojure-emacs/cider-nrepl/commit/807b250b0048298948c453a1c6c9527f05a93932#diff-156621f66b9a5c16a8d5eabf6bc46cd7
@U051BLM8F Thanks. Do you mind sharing how you would actually look at instrumented code. I am currently doing something of the form:
(binding [*data-readers* (assoc *data-readers* 'break #'breakpoint-reader)]
(cider.nrepl.middleware.util.instrument/print-form
(cider.nrepl.middleware.util.instrument/instrument-tagged-code
(read-string "(dotimes [i 10] #break (prn i))"))
true true))
Which seems a bit overkill and I am not even sure this is correct. Is there an easier way?That looks reasonable to me, although if you’re playing with the code from CIDER probably you don’t need the binding
form, as cider-nrepl should be setting this already.
I can't understand why cider keeps on overriding my local-set-key for "M-.", my clojure-mode-hook looks like this
ELISP> clojure-mode-hook
(smartparens-strict-mode
(lambda nil
(set
(make-local-variable 'cider-repl-use-pretty-printing)
t)
(local-set-key
(kbd "M-.")
'ca-cider-or-dumb-jump)
(local-set-key
[f5]
'helm-imenu)
(local-set-key
[f6]
'cljr-helm)
(local-set-key
(kbd "<C-f5>")
'cider-test-run-test)
(cider-auto-test-mode t))
cider-mode
#[0 "\301\300!\210\302\211\207"
[sesman-system make-local-variable CIDER]
2]
(lambda nil
(set
(make-local-variable 'sesman-system)
'CIDER))
clojure--check-wrong-major-mode)
but M-.
is always bound to cider-find-var
instead of the function I define