This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-16
Channels
- # beginners (1)
- # boot (69)
- # carry (1)
- # cider (29)
- # cljs-dev (17)
- # cljsrn (100)
- # clojure (13)
- # clojure-austin (13)
- # clojure-brasil (1)
- # clojure-dev (1)
- # clojure-korea (3)
- # clojure-russia (3)
- # clojure-spec (20)
- # clojure-uk (5)
- # clojurescript (45)
- # cloverage (3)
- # datomic (5)
- # figwheel (1)
- # hoplon (198)
- # klipse (25)
- # lein-figwheel (2)
- # leiningen (3)
- # off-topic (35)
- # om (7)
- # om-next (2)
- # onyx (8)
- # proton (8)
- # re-frame (3)
- # untangled (1)
- # vim (13)
hey all. so if I want pretty printing all the time what's the best way to get it? is there a way to add fipp to every session?
Is there some way I can get cider to inject dependencies despite the "cider boot parameters" setting not being the default?
@zilti can you give an example of the boot command that you have and dependency you want to inject?
I worked on a PR (still needs approval) to have a custom task doing the injection for boot versions > 2.7.0 so maybe I can help you with that
@richiardiandrea I want to change it from "repl -s wait" to "dev" (I have a "dev" task that simply "comp"s a couple tasks together), and I want cider to still inject the dependencies it normally injects for a jack-in.
@zilti I usually have a cider
task in my profile boot and I chain boot cider dev
for that
(deftask cider
"Add CIDER support:
"
[]
(require 'boot.repl)
(swap! boot.repl/*default-dependencies*
concat '[[cider/cider-nrepl "0.14.0"]
[venantius/ultra "0.4.1"]
[org.clojure/tools.nrepl "0.2.12"]
[refactor-nrepl "2.2.0"]])
(swap! boot.repl/*default-middleware*
concat '[refactor-nrepl.middleware/wrap-refactor
cider.nrepl/cider-middleware])
identity)
@richiardiandrea hmm. So pretty much like putting it into the "global" boot file? How does cider determine if the "cider boot parameters" variable is good enough for it to inject the dependencies?
So I added that line and eval'ed it but when I run cider-jack-in-cljs
it still shows that its injecting refactor-nrepl
in the minibuffer
well tbh not that strange. what cljr does is to add its own middlewares to a list in cider. this addition happens after cider is loaded
@zilti mmm, I don't understand the question maybe, but you add a custom command line for boot and then the cider
task injects the middleware, you are in control of both parts and you can decide where to apply it (with .dir-locals.el
for instance)
Is there a way to have a CLJ and separate CLJS repl when I'm jacked in to CIDER? Ex, I'd love if when I request an http route on my server, if I can see a debugging printout in that backend repl. And then the same for CLJS.
I've got trouble with cider after upgrading to 0.14.0:
ELISP> (when-let ((a 1)) a)
*** Eval error *** Wrong number of arguments: when-let, 1
this when-let
syntax is used in cider everywhere, but for some reason, emacs' cl package does not grok it in my install (emacs 25.1.1 on OSX)