This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-17
Channels
- # admin-announcements (4)
- # beginners (21)
- # boot (37)
- # cider (41)
- # cljs-dev (3)
- # cljsjs (11)
- # cljsrn (4)
- # clojure (31)
- # clojure-austin (21)
- # clojure-belgium (30)
- # clojure-canada (1)
- # clojure-dusseldorf (2)
- # clojure-poland (7)
- # clojure-russia (20)
- # clojure-taiwan (1)
- # clojure-uk (45)
- # clojurescript (90)
- # core-async (8)
- # cursive (4)
- # data-science (1)
- # datomic (5)
- # dirac (6)
- # docker (1)
- # emacs (8)
- # hoplon (102)
- # ldnproclodo (2)
- # lein-figwheel (3)
- # leiningen (13)
- # off-topic (9)
- # om (54)
- # onyx (4)
- # other-languages (101)
- # pedestal (8)
- # planck (2)
- # protorepl (1)
- # re-frame (15)
- # reagent (13)
- # spacemacs (4)
- # untangled (126)
- # yada (4)
Is there a way to make cider-connect
auto inject dependencies, the same way cider-jack-in
does?
https://github.com/clojure-emacs/cider/blob/master/cider.el#L512
I tried setting cider-jack-in-auto-inject-clojure
, but to no avail.
https://github.com/clojure-emacs/cider/blob/master/cider.el#L245
@malabarba I’m just playing around with some of the functions. And this:
"update-in :dependencies conj \\[org.clojure/clojure\\ \\\"1.8.0\\\"\\] -- 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.13.0-SNAPSHOT\\\"\\] -- repl :headless"
So on startup we’re executing lein update-in :dependencies conj \\[org.clojure/clojure\\ \\\"1.8.0\\\"\\] -- update-in ... -- repl :headless
Wondering if can’t just inject those deps into a running repl, like how pomegranate does.
It's probably possible to implement. I just meant you can't do it right now with cider
Well, from what I can tell, we have:
update-in :dependencies conj [org.clojure/clojure "1.8.0"]
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.13.0-SNAPSHOT"]
@twashing sort of. Those are actually lein plugins (sort of dependencies). But they do contain the midddleware that is injected, yes.
@malabarba Yeah, I’m crawling through tools.nrepl middleware docs right now: https://github.com/clojure/tools.nrepl#middleware
the whole concept of middlewares in this case (decorating requests before being sent to the server), exists entirely on the client’s side.
i want to cider-connect to an nrepl server... however, when i do, my cider functions dont seem connected to that REPL. is there an emacs variable or something that needs to be set like cider-cljs-lein-repl. i dont want to jack-in
@fenton: cider consist of a part in emacs and a part in Clojure. The project you're connecting to needs to have the Clojure part loaded. Either add cider as a dev dependency in your project.clj, or inject it on the command line when starting lein repl
Try cider-jack-in and have a look at your *messages*
buffer, then you can see the invocation of lein repl
that cider uses to inject itself
The easiest way to get the cider midddleware in a repl that you start separately is to add it as a lein plugins
@malabarba gonna go look at manual...
If I do cider-connect and have orphaned buffers, it prompts me if I want to use them. If I say yes, it ask which one, but always says "no match"