This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aleph (16)
- # bangalore-clj (4)
- # beginners (19)
- # boot (27)
- # cider (81)
- # clara (2)
- # cljs-dev (343)
- # cljsrn (97)
- # clojure (224)
- # clojure-hk (1)
- # clojure-italy (25)
- # clojure-russia (5)
- # clojure-serbia (2)
- # clojure-spec (7)
- # clojure-uk (27)
- # clojurescript (97)
- # cursive (8)
- # datomic (48)
- # docker (1)
- # emacs (15)
- # hoplon (39)
- # jobs (4)
- # lumo (13)
- # off-topic (2)
- # om (66)
- # onyx (7)
- # parinfer (5)
- # pedestal (2)
- # play-clj (10)
- # protorepl (2)
- # quil (1)
- # re-frame (38)
- # reagent (33)
- # spacemacs (1)
- # specter (4)
- # sql (19)
- # test-check (31)
- # unrepl (4)
- # untangled (3)
when I jack-in-clojurescript there are two REPLs created. is there a way to exit them both with one command?
@benedek http://cider.readthedocs.io/en/latest/managing_connections/ -
C-u C-c C-q seems to be what you're looking for
fair enough, that seems to be the only way sofar that I know of, assuming you're on a single project
does anyone know why with cider, how sometimes setting and evaluating a
#dbg form doesn’t work? I don’t get an error, just the breakpoint is never hit. Not even when I refresh.
@rickmoynihan have you tried 0.15.0-SNAPSHOT? I don't know if there's a resolution, but at least you'll know whether you can confirm the behavior with the latest CIDER.
@grzm: Hey thanks for the reply… I tried it yesterday (not to resolve this issue - just to try it) and it seemed a little buggy with my setup, so I switched back to 0.14.0
jump to definition seemed a little glitchy… I’d have to do it twice for some reason IIRC before it’d jump.
not sure if it was a cider issue or just my emacs - but didn’t have time to debug
I find debugging CIDER very frustrating 😕 I'm currently fighting CIDER/cider-nrepl right now. I'm starting my nrepl server from the command line to pick up environment variables, and I'm getting version mismatches which is preventing me from running cider-refresh. And something I did last night fixed it, and then something I did today broke it again.
I created a script called
lein-cider and use
lein-cider repl to start my repl.
The script then injects the cider middleware in the same way
M-x cider-jack-in does:
#!/bin/bash lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[refactor-nrepl\ \"2.3.1\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.14.0\"\] -- "[email protected]"
problem for me was that a dependency was somehow a higher precedence than my
:user profile. I’ve only seen it on one project we have.
generally speaking it is not a good idea to have something in your lein/boot
profiles.clj and also inject deps from the CLI
or using some config support library there are loads 🙂 but surely i am not aware of your full context…
@grzm: You can? I tried a few things but never got it to work quite right on mac. Problem I had is that GUI emacs starts up outside of the shell (via the UI) so skips the env vars.
@benedek: that might well work… but i’d have to maintain the env vars in two places
Yeah, the point using the environment variables is to not have to maintain them in two places.
basically I use
wrapenv to manage my env vars for different projects etc… I’d found it’s easier to do it outside of emacs
@dotemacs: I had tried that a while back, but like I said I like to swap the environments
@dotemacs Would that work for a GUI emacs? Any custom path set by a profile would ignore those customizations.
though if I recall it never seemed to work quite right for me… probably did something wrong
@grzm the whole point of that package is to make sure that your Mac installed Emacs picks up your env vars from your shell init file, instead of the “default” ones
i am really thinking hard here…. but as far as i remember at least in jvm clojure if you use the java api to get env variables and run my project in a repl they are picked up…
oh just remembered the other thing that seemed broken in
0.15.0-SNAPSHOT jumping to source from a stackframe
okay. I should be able to use
cider-connect to connect to an nrepl server started with
boot repl -s wait
From a boot repl (no
-s wait option), I can see
(:version-string cider.nrepl.version/version) ;; => "0.15.0-snapshot", which is what I expect because I have that version of cider-nrepl in my dependencies.
When I use
cider-connect, I see this warning:
WARNING: CIDER's version (0.15.0-snapshot) does not match cider-nrepl's version (nil). Things will break!
i don’t know much about boot; but if it were
lein, I’d be running either
lein deps :tree or
lein classpath right now
hold on. so you have that defined but you don’t use it when you start up the repl you connect to from cider?
I just know that when I'm not able to use CIDER, my development cycle slows to a crawl. The dev/compile/test cycle is so long.
haha well, ok. the REPL is awesome yes. shorter the feedback loop better is the dev experience for sure