I’m on CIDER 1.18.0-snapshot (package: when running cider-jack-in-clj I get this startup command by default:
;; Startup: /opt/homebrew/bin/clojure -Sdeps \{\:deps\ \{nrepl/nrepl\ \{\:mvn/version\ \"1.3.1\"\}\ cider/cider-nrepl\ \{\:mvn/version\ \"0.52.1\"\}\ refactor-nrepl/refactor-nrepl\ \{\:mvn/version\ \"3.10.0\"\}\}\ \:aliases\ \{\:cider/nrepl\ \{\:main-opts\ \[\"-m\"\ \"nrepl.cmdline\"\ \"--middleware\"\ \"\[refactor-nrepl.middleware/wrap-refactor\,cider.nrepl/cider-middleware\]\"\]\}\}\} -M:cider/nrepl -A:clj:dev -m nrepl.cmdline --middleware '%s'
Is this correct? (or a bug, my misunderstanding, or misconfiguration?)
• Shouldn’t the -A come earlier, before -M:cider/nrepl e.g. at the beginning?
• Do we need -m nrepl.cmdline --middleware as that’s already in the :main-opts for the :cider/nrepl alias?
With this command as it is the aliases from projects deps.edn won’t be respected, right?yes, that -A will be sent as an argument to the -M main
anything after -M -X or -T is an argument to that respective program, -A should always be before
Doesn't happen to me by default – seems like this is a misconfiguration on your side. Also, that middleware '%s' thing is suspicious. Can you check e.g. your ~/.emacs.d/custom.el file for all configuration variables that start with cider-?
🙏 thank you both! Indeed my bad, I was pretty sure I didn’t have anything custom set up for this, but clearly I don’t really know what’s hiding in my sprawling emacs config 🙂