This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-30
Channels
- # announcements (1)
- # babashka (15)
- # calva (3)
- # cider (1)
- # clj-kondo (16)
- # clj-on-windows (1)
- # cljfx (1)
- # clojure (25)
- # clojure-europe (6)
- # clojure-spec (15)
- # cursive (13)
- # emacs (11)
- # fulcro (2)
- # humbleui (7)
- # introduce-yourself (1)
- # jackdaw (1)
- # off-topic (10)
- # pathom (5)
- # portal (3)
- # re-frame (7)
- # reagent (12)
- # releases (1)
- # shadow-cljs (8)
- # tools-build (18)
- # web-security (10)
I need to run a custom main when starting my REPL, but I'd still like CIDER to inject the version of deps and middleware to it. I have setup my main to pass in the CLI options to the nREPL cmdline -main
, so I can modify this to be the jack in command:
/opt/homebrew/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "1.0.0"} cider/cider-nrepl {:mvn/version "0.28.6"}}}' -M:dev -m user --middleware '[cider.nrepl/cider-middleware]'
where the :dev
alias is just
{:dev {:extra-paths ["dev"]
:extra-deps {org.clojure/tools.namespace {:mvn/version "1.3.0"}}
:jvm-opts ["-ea"]}}
the problem I'm having now is trying to automate this via .dir-locals.el
. It would be pretty handy to allow me to specify everything after the -Sdeps {,,,}
map, but I don't think this is possible given the customizations cider.el provides