This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-10
Channels
- # beginners (151)
- # cider (41)
- # cljdoc (7)
- # cljs-dev (6)
- # clojure (92)
- # clojure-dev (5)
- # clojure-italy (26)
- # clojure-losangeles (1)
- # clojure-nl (10)
- # clojure-russia (3)
- # clojure-spec (23)
- # clojure-uk (82)
- # clojurescript (56)
- # clojutre (1)
- # core-async (3)
- # cursive (15)
- # datomic (26)
- # editors (3)
- # emacs (3)
- # events (2)
- # figwheel-main (192)
- # fulcro (66)
- # leiningen (12)
- # mount (1)
- # off-topic (131)
- # portkey (6)
- # re-frame (38)
- # reagent (10)
- # reitit (7)
- # ring-swagger (55)
- # shadow-cljs (21)
- # spacemacs (11)
- # tools-deps (48)
cider-jack-in
just runs clj
(or clojure
to be precise), so I can’t imagine how the result would be different.
You can see the exact command that’s being run when you’re waiting for jack-in
to finish.
What was happening is that I defined an alias dev
in my deps.edn
, as cider-jack-in
does not take those dependencies into account. What I have not been able to do is define is to use in .dir-locals.el
instead of my init.el
(setq cider-clojure-cli-global-options "-A:dev")
I tried doing (setq cider-clojure-cli-global-options "-A:dev")
in .dir-locals.el
but emacs does not pick it up :thinking_face:
@pvillegas12 .dir-locals.el
has a special syntax - see http://endlessparentheses.com/a-quick-guide-to-directory-local-variables.html
Thanks @bozhidar ((nil . ((cider-clojure-cli-global-options . "-A:dev"))))
is the right way 😄
the manual/wiki I found suggested more complex solutions, but guess that is worth testing
@gdanov First time I hear there’s anything in the CIDER manual about reloading dir locals. Or maybe you’re referring to the Emacs manual?
I also see a couple of other simple solutions here - https://www.reddit.com/r/emacs/comments/54vc6u/reevaluating_local_variables_after_change/
I’ve upgraded to the newest cider. when I quit my app, the REPL session in emacs is dead. But when I want to reconnect when I restart my app, it says there’s already a REPL and it wants to create a sibling REPL instead.
even when I do cider-connect
within the dead REPL it’s going to ask: create sibling REPL instead? type yes to proceed
@borkdude I don’t think that’s possible currently. Seems you encountered some bug, so I’d suggest submitting this on our issue tracker.
hope it’s clear enough: https://github.com/clojure-emacs/cider/issues/2444
Another issue: when I delete the killed repls and then run cider-connect
it prints “Selecting deleted buffer” and there’s no REPL