This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-10
Channels
- # admin-announcements (1)
- # alda (1)
- # bangalore-clj (1)
- # beginners (94)
- # boot (139)
- # braveandtrue (1)
- # cider (19)
- # cljs-dev (21)
- # cljsjs (8)
- # cljsrn (79)
- # clojure (124)
- # clojure-austin (1)
- # clojure-belgium (1)
- # clojure-berlin (3)
- # clojure-hamburg (3)
- # clojure-quebec (1)
- # clojure-russia (77)
- # clojure-spec (5)
- # clojure-uk (18)
- # clojurescript (39)
- # conf-proposals (21)
- # core-async (5)
- # cursive (8)
- # datomic (40)
- # defnpodcast (1)
- # devcards (14)
- # dirac (5)
- # editors (1)
- # emacs (4)
- # jobs (1)
- # liberator (4)
- # onyx (29)
- # perun (15)
- # proton (15)
- # protorepl (9)
- # re-frame (47)
- # reagent (38)
- # ring (1)
- # rum (7)
- # specter (23)
- # untangled (8)
- # yada (55)
how do I make the current function's signature show up in a cljs repl?
it does show up when editing cljs files
also, it keeps wrongly setting clojure-mode for .cljs files: Something in your configuration activated `clojure-mode'
The correct mode should be set automatically, but your setup might be doing some kind of manual override.
When I run (cider-connect)
it asks me to confirm the nrepl host/port (which I guess it gets from .nrepl-port
)
in fact I always want to use the default choice (I press enter twice)
any way to get around those two keypresses?
hmm I don't see a reference to .nrepl-port
ah it's in nrepl-client.el
this is what I came up with:
(defun cider-force-connect ()
(interactive)
(cider--quit-connection (cider-current-connection))
(cider-connect "localhost" (second (first (cider-locate-running-nrepl-ports)))))
elisp is fun 🙂
even better:
(defun cider-reset-dev ()
(interactive)
(when (not (cider-current-connection))
(cider-connect "localhost" (second (first (cider-locate-running-nrepl-ports)))))
(cider-eval-buffer)
(cider-interactive-eval
"(when-let [r (resolve 'my.project.repl/reset-dev)] (r))"))
I’ve just started with Spacemacs, and I'm trying to jack in with cider. I get this error when I do: https://www.refheap.com/122096
Caused by: java.lang.SecurityException: Cannot locate policy or framework files!
I have no issue launching repls in Cursive or lein in the terminal, and I get this on multiple projects, even after moving my profile.clj
. Does anyone have any ideas?
Seems to be related to refactor-nrepl and cider-nrepl
This works:
lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- repl
this doesn’t
lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.3.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.14.0-SNAPSHOT\"\] -- repl
hi guys
Looks like rolling back to a stable version of cider is probably the best course here