This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-17
Channels
- # bangalore-clj (1)
- # beginners (23)
- # boot (141)
- # cider (68)
- # cljs-dev (29)
- # cljsjs (1)
- # cljsrn (11)
- # clojure (150)
- # clojure-austin (3)
- # clojure-berlin (1)
- # clojure-france (2)
- # clojure-greece (13)
- # clojure-italy (5)
- # clojure-russia (49)
- # clojure-spec (15)
- # clojure-uk (45)
- # clojurescript (152)
- # code-art (1)
- # core-async (75)
- # cursive (12)
- # datascript (2)
- # datomic (90)
- # dirac (5)
- # emacs (10)
- # garden (1)
- # hoplon (52)
- # instaparse (4)
- # juxt (2)
- # lein-figwheel (2)
- # lumo (47)
- # mount (94)
- # off-topic (20)
- # om (21)
- # onyx (14)
- # parinfer (19)
- # pedestal (3)
- # protorepl (13)
- # re-frame (5)
- # reagent (20)
- # slack-help (10)
- # spacemacs (8)
- # specter (57)
- # unrepl (11)
- # untangled (3)
- # vim (1)
- # yada (1)
can someone tell me briefly what currently doesn’t work with cider-connect vs when you do straight jack-in?
@ag Cider-connect just connects to a pre-launched repl , did I understand the question correctly?
Uhm difficult to say but the emacs tools should all be available, Clojure ones depends on if you have them on the classpath
The jack in command can pasted in the terminal
@richiardiandrea certain things seem to break or not to work properly when you use cider-connect. For reasons I do not fully understand. I always tried to use cider-jack-in and cider-jack-in-clojurescript, but thinking if we can wrap entire app in a docker container and connect to it
Never tried that, but a remote repl if configured right should not be different, at the end of the day you are just not connecting locally but remotely
Probably in the dcker you don't setup the middleware?
I mean cider-nrepl
should be in your dependencies
Jack in adds that for you
If you execute exactly the same command that Jack in triggers in the docker image, I bet you would have the same behavior
I’ve added cider-nrepl dependency, started repl in terminal, connected to it, format-edn-buffer still doesn’t work ;(
cider-format-edn-buffer: Wrong type argument: char-or-string-p, nil
- what else should I do to correctly “inject” the middleware?
alright, I have followed every instruction in cider-nrepl readme, added ALL listed middleware, connected, yet edn-format-buffer doesn’t work
hmmm I added refactor-nrepl, followed the instructions, still can’t get edn-format-buffer, now checking if it’s a version conflict
Debugger entered--Lisp error: (error "Buffer *cider-repl localhost* has no process")
makes it sound like you're disconnected or things have gone seriously wrong
seems the hassle of getting all the features that CIDER provides through cider-connect is just way to big. It’s simply better to jack-in
so here’s what I’m doing: cider-jack-in
, cider-scratch
, type a form, run edn-format-buffer
- Boom! it works.
through cider-connect - it doesn’t. not very critical for me - I guess I would keep jacking-in. But it would be nice if things work also when cider-connect
@ag Didn't see this mentioned. What's in your /.lein/profiles.clj / /.boot/profiles.boot
Depends on if you're lauching a boot or lein project. If you're doing boot repl
without anything funky to load in cider, many of the features of cider won't work.
I can't get company-mode
work with cider-powered completions. I see that requests for completions are sent to REPL, but the response is always completions nil
. Any idea how to debug?
(-->
op "complete"
session "8eb64e7f-4dbb-41fa-a809-0e86c765beda"
ns "abc.test"
symbol #("slu" 0 5 (cider-locals nil fontified t help-echo cider--help-echo))
context ":same"
id "44"
)
(<--
completions nil
id "44"
session "8eb64e7f-4dbb-41fa-a809-0e86c765beda"
status ("done")
)
and i've got send to repl baked into my hands C-u C-c M-z
i think. My hands can do it but i can't type it