This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-02
Channels
- # announcements (2)
- # aws (13)
- # beginners (52)
- # boot (10)
- # calva (2)
- # cider (23)
- # clara (23)
- # cljs-dev (16)
- # cljsrn (5)
- # clojure (69)
- # clojure-brasil (1)
- # clojure-conj (3)
- # clojure-dev (41)
- # clojure-india (2)
- # clojure-italy (39)
- # clojure-nl (5)
- # clojure-russia (2)
- # clojure-spec (5)
- # clojure-uk (51)
- # clojurescript (78)
- # code-reviews (13)
- # data-science (2)
- # datascript (22)
- # datomic (47)
- # duct (13)
- # emacs (4)
- # figwheel-main (45)
- # fulcro (85)
- # funcool (4)
- # jobs (9)
- # nrepl (106)
- # off-topic (5)
- # pathom (7)
- # pedestal (2)
- # re-frame (17)
- # reagent (32)
- # reitit (7)
- # ring-swagger (2)
- # shadow-cljs (33)
- # spacemacs (4)
- # specter (2)
- # tools-deps (203)
- # vim (1)
How can I cider-connect to a nREPL started with lein cljsbuild
? cider
doesn't seem to have a nREPL type for it.
@narendraj9521 I thought this was some ancient legacy. 🙂 I guess you can add some custom type for it http://www.cider.mx/en/latest/clojurescript/#starting-a-clojurescript-repl
I was having some issues with cider-jack-in-cljs
. Since I am not fully familiar with what it does behind the scenes, I was looking at other options.
If you start the nREPL server outside Emacs you can simply connect to it via cider-connect
.
I simply don’t know what cljsbuild does - I just have a passing familiarity with figwheel and shadow.
I don't need to call cider-connect-cljs
for that?
How do you build your ClojureScript application for production?
I’m don’t ClojureScript, only Clojure. My knowledge of ClojureScript extends just to the bare minimum for me to implement support for it in CIDER. Can’t help with pro cljs advice. 🙂
I am also new to Clojurescript. Looks like it's not as seamless to use cider with ClojureScript as it is with Clojure. I have mostly written Clojure.
@narendraj9521 that's true, it is unfortunatley not as seamless. I would grab a figwheel main tutorial or template or a shadow-cljs tutorial or template and work from there.
Yes, it's difficult to add things to an existing project.
I either asked this recently or I meant to — how can I bind a clojure form to a command that will be sent to the current nREPL connection?
@martinklepsch Can you show me some example of what you’re trying to do? You just want to wrap some expression to an interactive Emacs command, right?
@bozhidar I want to run something like (integrant.repl/reset)
with a command that I can access via M-x (I think that is interactive, right?)
Thanks a lot Bozhidar, much appreciated ❤️
(defun cider-ns-reload-all (&optional prompt)
(interactive "P")
(let ((ns (if prompt
(string-remove-prefix "'" (read-from-minibuffer "Namespace: " (clojure-find-ns)))
(clojure-find-ns))))
(cider-interactive-eval (format "(require '%s :reload-all)" ns))))
(defun integrant-halt-go ()
(interactive)
(cider-interactive-eval "(do (integrant.repl/halt) (integrant.repl/go))"))
Thanks, this is perfect 👌