This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-02
Channels
- # announcements (2)
- # babashka (10)
- # beginners (61)
- # calva (17)
- # cider (27)
- # clj-kondo (14)
- # clojure (230)
- # clojure-austin (4)
- # clojure-europe (17)
- # clojure-france (6)
- # clojure-hungary (3)
- # clojure-norway (30)
- # clojure-sweden (9)
- # clojure-uk (2)
- # clojurescript (58)
- # conjure (11)
- # core-async (7)
- # cursive (74)
- # datalog (2)
- # datomic (15)
- # events (8)
- # figwheel-main (5)
- # fulcro (2)
- # graalvm (23)
- # graphql (2)
- # helix (17)
- # humbleui (2)
- # jobs (2)
- # kaocha (6)
- # lsp (19)
- # malli (7)
- # nbb (51)
- # off-topic (33)
- # pathom (26)
- # pedestal (2)
- # polylith (1)
- # portal (4)
- # re-frame (17)
- # react (3)
- # reitit (5)
- # releases (2)
- # remote-jobs (2)
- # shadow-cljs (18)
- # sql (65)
- # tools-deps (8)
- # xtdb (28)
just a quick question, cider jack in doesn’t respect my entry in dir-locals
(cider-clojure-cli-global-options . "-M:repl")
that’s what i have
using cider jack in I get
/opt/homebrew/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "1.0.0"} cider/cider-nrepl {:mvn/version "0.28.6"} refactor-nrepl/refactor-nrepl {:mvn/version "3.5.5"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}}}' -M:cider/nrepl
would have expected : -M:repl:cider/repl
Have you verified the value of cider-clojure-cli-global-options
in the buffer with M-x describe-variable
?
yes, it’s set
I think you need escaped double-quotes https://github.com/clojure-emacs/cider/pull/3224
Ok, i just found out it’s not picked up, globally it’s nil
ok, neither global-options nor cli-aliases variables are picked up
after changing I did a rever-buffer on the open buffer I was trying the jack in on
hm, is there a way to check if dir-locals is loaded?
I normally just kill the buffer (make sure it’s properly gone), reopen it, and inspect the variable
I’d also check in the docs which variables do the thing you want - looks like there’s also cider-clojure-cli-aliases
I think cli-alies is the correct one
hm, still not picked up … restarted emacs completely
it’s set to t
If I set the var via set-variable it works as expected
(clojure-mode . ((cider-preferred-build-tool . clojure-cli)
(cider-clojure-cli-aliases . ":repl")))
that’s all there is to the .dir locals
nope, still not picked up
hm, maybe doom emacs is the issue