This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-26
Channels
- # admin-announcements (1)
- # alda (44)
- # aws-lambda (6)
- # beginners (8)
- # boot (187)
- # capetown (5)
- # cider (25)
- # cljs-dev (24)
- # cljsrn (93)
- # clojure (45)
- # clojure-austin (9)
- # clojure-canada (2)
- # clojure-greece (1)
- # clojure-mexico (3)
- # clojure-poland (3)
- # clojure-russia (1)
- # clojure-spec (12)
- # clojure-uk (13)
- # clojurescript (86)
- # cursive (9)
- # datascript (3)
- # datomic (32)
- # defnpodcast (4)
- # devcards (23)
- # editors (3)
- # emacs (5)
- # hoplon (27)
- # immutant (3)
- # lein-figwheel (9)
- # leiningen (4)
- # luminus (10)
- # om (32)
- # onyx (2)
- # other-languages (1)
- # perun (1)
- # protorepl (8)
- # re-frame (13)
- # reagent (2)
- # remote-jobs (2)
- # ring (3)
- # spacemacs (4)
- # spirituality-ethics (3)
- # test-check (16)
- # untangled (65)
- # yada (50)
@dsutton you mean a function that calls tools..../refresh :after ..)
?
@jsa-aerial: no, it doesn't mess with C-x C-e
I am inside a clojurescript project and I’m using emacs and nRepl and cider for development.
I am also using figwheel (server?).
I start the lein server from my terminal lein repl :headless
and use cider-connect C-c M-c
to connect to the lein server
after i start figwheel and run this command (figwheel-sidecar.repl-api/cljs-repl)
i can no longer compile code from a file.
i.e. running C-c C-k
doesn’t work and i get this message in my *Messages*
buffer.
user-error: `cider-eval-defun-at-point' needs a Clojure REPL.
If you don't know what that means, you probably need to jack-in (`C-c M-j').
Mark set
Update: I just tried using the cider-jack-in
command to start and connect to a repl from emacs.
I get the same error
@dpsutton: mine is pretty simple but configurable through .dir-locals.el
: https://github.com/arichiardi/ar-emacs-pack/blob/master/config/cider-conf.el#L87
lot of good stuff in there. I'll be taking many cues from that. Thanks for sharing that @richiardiandrea
ah ah no problem feel free 😉
@malabarba: it also doesn’t work for a cljs file
realized the problem was here:
(defun cider-connection-type-for-buffer ()
"Return the matching connection type (clj or cljs) for the current buffer."
(cond
((derived-mode-p 'clojurescript-mode) "cljs")
((derived-mode-p 'clojure-mode) "clj")
(cider-repl-type)
(t "clj")))
for my cljs
file the major-mode isn’t clojurescript-mode
.
therefore, it (`cider-connection-type-for-buffer`) defaults to clj
type.
my current cider-connection-type-for-buffer
is cljs
and therefore it wasn’t working.
tldr;
after setting the major-mode in a cljs file to clojurescript-mode i can compile the file using C-c C-k
without getting an error,.anyone has problems with connecting to repl from CIDER?
nrepl--direct-connect: [nREPL] Direct connection failed
@ag: you can toggle-edebug-on-error
to narrow it down further.
but to answer your question, I didn’t have a problem with cider-jack-in