This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-22
Channels
- # adventofcode (78)
- # announcements (12)
- # babashka (2)
- # beginners (116)
- # calva (20)
- # cider (17)
- # clj-kondo (15)
- # cljs-dev (51)
- # clojure (32)
- # clojure-android (1)
- # clojure-dev (4)
- # clojure-europe (91)
- # clojure-gamedev (1)
- # clojure-italy (2)
- # clojure-nl (1)
- # clojure-spec (12)
- # clojure-taiwan (1)
- # clojure-uk (10)
- # clojurescript (9)
- # conjure (3)
- # cryogen (4)
- # cursive (4)
- # data-science (1)
- # datomic (5)
- # depstar (5)
- # fulcro (39)
- # google-cloud (2)
- # kaocha (2)
- # malli (7)
- # off-topic (3)
- # pathom (3)
- # pedestal (5)
- # re-frame (19)
- # rewrite-clj (54)
- # ring (3)
- # shadow-cljs (12)
- # spacemacs (12)
- # specter (3)
- # tools-deps (63)
Does clj-refactor work with jdk11? I get refactor-nrepl is unreachable.
Does anyone use clj-refactor?
I set https://github.com/robert-stuttaford/clj-cljs-app/ up on JDK11 and it works. Perhaps the answer you need is somewhere in how this is set up?
Thank you! That excludes JDK11 as a cause. I use spacemacs with the clojure layer (clojure :variables clojure-enable-clj-refactor t) This should work automagically.
Finally, I deleted refactor-nrepl in .m2 . Cider re-downloaded it and now it works.
How do I bind a clojure eval to a shortcut? There is cider-read-and-eval
but if I call (cider-read-and-eval "(user/restart)")
, the command appears in the minibuffer and I have to additionally press Enter to eval it.
> Read a sexp from the minibuffer and output its result to the echo area. If VALUE is non-nil, it is inserted into the minibuffer as initial input.
Yes, but how do I avoid having to press enter?
you can't with that function. that's why i posted the docstring. that function is for reading from the minibuffer and a prompt. you will always end up in the minibuffer
Is there another function that would do that?
if you read the source of that function you can see all the things its doing. but its ultimately calling (cider-interactive-eval form)
there's some stuff relating to namespace but if you want just a simple thing that form there will do it
its making a new buffer, putting an ns form of whatever the current namespace is in the buffer you're calling it from, and then your form and calling eval on the form
Ah, great, thank you! I tried looking at the source but it seemed like a lot of stuff going on there.