This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-04
Channels
- # aleph (10)
- # announcements (2)
- # babashka (2)
- # beginners (101)
- # calva (17)
- # cider (11)
- # clara (6)
- # clj-kondo (25)
- # cljsrn (33)
- # clojure (181)
- # clojure-dev (15)
- # clojure-europe (3)
- # clojure-italy (4)
- # clojure-nl (8)
- # clojure-uk (22)
- # clojurescript (111)
- # clojutre (58)
- # cursive (31)
- # data-science (1)
- # datomic (10)
- # emacs (6)
- # ethereum (1)
- # fulcro (20)
- # graalvm (3)
- # jackdaw (5)
- # leiningen (5)
- # off-topic (31)
- # re-frame (2)
- # reitit (10)
- # shadow-cljs (9)
- # spacemacs (16)
- # sql (8)
- # tools-deps (16)
- # vim (17)
Hello there, I want to refactor a namespace. When I try , r r s
on the ns then I get cljr-rename-symbol: Wrong type argument: char-or-string-p, nil
Many of the clj-refactor commands require a Clojure REPL is running. This might be the cause of the error.
You may also find projectile-replace
a useful alternative for changing a symbol name across a project.
There are some more refactor approaches covered at
https://practicalli.github.io/spacemacs/refactor/
Hello everyone π I was wondering if someone could point me to good resources for debugging clojure(script) code via spacemacs ( or cursive). Would be great if you could share your own debugging setup
, d b
or M-RET d b
to instrument a specific function. When calling that function the the cider-debugger
will start and allow you to step through the code and show you the intermediate values along the way.
I use this for Clojure code. Not sure if there is the same for ClojureScript, I tend to just use figwheel-main error reporting, the repl and browser Dev tools
@U05254DQM, I gave it a shot and got this working for sure - need to learn the stepping functions for sure π Thanks!
I just use n
for next, seems to be all I need. If I am debugging with a lazy sequence, I may need to use o
to step out of the specific expression and evaluate its parent expression. For example if I have a (range)
function inside a (take 20 ,,,)
function, then I use o
to skip outside the range call and call the take expression instead. I havent really used the other debugging options yet.
Yup, tried that and first time ever - I actually debugged clojure code π The experience is kinda nice, I canβt wait to explore this thing in debugging apart from the repl itself.
newb question: Can someone point me at the documentation for emacs
mode (i.e. non-`evil`) for the Clojure layer? Specifically, I'm interested in this: http://spacemacs.org/layers/+lang/clojure/README.html#key-bindings for emacs
mode.
a good tip is if you want to find the major mode name do C-h m
which brings you into the current mode help
you'll see all the minor modes and the current major-mode
you can usually find a mode name to search and find the project page, or even scour through the code, though backtracing some of the keymaps and stuff are a little tough in emacs
@mafcocinco there is a standard substitution you can make for the keybindings
M-RET
where you see SPC m
or ,
M-m
where you see SPC
followed by characters
C-u
instead of SPC u
for the universal argument
M
is meta key, e.g Alt on PC or Option on Mac
RET
is the return/enter key
C
is the command key
Many of the clj-refactor commands require a Clojure REPL is running. This might be the cause of the error.
You may also find projectile-replace
a useful alternative for changing a symbol name across a project.
There are some more refactor approaches covered at
https://practicalli.github.io/spacemacs/refactor/
@mafcocinco there is a standard substitution you can make for the keybindings
M-RET
where you see SPC m
or ,
M-m
where you see SPC
followed by characters
C-u
instead of SPC u
for the universal argument
M
is meta key, e.g Alt on PC or Option on Mac
RET
is the return/enter key
C
is the command key
, d b
or M-RET d b
to instrument a specific function. When calling that function the the cider-debugger
will start and allow you to step through the code and show you the intermediate values along the way.
I use this for Clojure code. Not sure if there is the same for ClojureScript, I tend to just use figwheel-main error reporting, the repl and browser Dev tools