This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-26
Channels
- # aws-lambda (15)
- # babashka (7)
- # beginners (124)
- # calva (7)
- # cider (19)
- # clj-kondo (26)
- # clojure (261)
- # clojure-australia (3)
- # clojure-dev (10)
- # clojure-europe (45)
- # clojure-nl (4)
- # clojure-uk (6)
- # clojurescript (10)
- # datomic (7)
- # depstar (7)
- # emacs (11)
- # fulcro (41)
- # graalvm (48)
- # helix (1)
- # honeysql (17)
- # inf-clojure (7)
- # introduce-yourself (3)
- # jackdaw (2)
- # lsp (36)
- # malli (2)
- # meander (2)
- # membrane (1)
- # missionary (11)
- # off-topic (17)
- # pathom (83)
- # polylith (15)
- # re-frame (31)
- # reagent (42)
- # sci (35)
- # shadow-cljs (13)
- # spacemacs (13)
- # sql (19)
- # timbre (3)
- # tools-deps (77)
https://youtu.be/_Wt4bhy_SFA I’ve got a problem where dir-locals doesn’t work.
Did you use revert-buffer
to load the .dir-locals.el ??
I am still watchign the video 🙂
Process should be, create/edit the .dir-locals.el file, save it, jump to clojure buffer, revert clojure buffer and then run cider-jack-in
Newer versions of Cider are using the variable
cider-clojure-cli-aliases
Unless they have changed it back to global-optoins already 🙂This is what I am using at my current project at work
((clojure-mode . ((cider-clojure-cli-aliases . ":env/develop:env/test"))))
You can also use SPC u SPC SPC cider-jack-in-cljs
and the full jack-in command will show in the mini-buffer, allowing you to edit the command. It should be possible just to edit the last part of that command in the mini-buffer, adding your aliases to the start of -M:cider/nrepl
So if you have an alias of :env/test
to add a test path, then the last part of the command would be -M:env/test:cider/nrepl
The main function is called from the cider/nrepl alias, so that must go last.
I should add that bit to my page on this subject (reminder to self) https://practical.li/spacemacs/clojure-projects/project-configuration.html