cider

prnc 2025-03-18T18:13:14.679259Z

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?

Alex Miller (Clojure team) 2025-03-18T18:55:29.773389Z

yes, that -A will be sent as an argument to the -M main

🙏 1
Alex Miller (Clojure team) 2025-03-18T18:56:01.778389Z

anything after -M -X or -T is an argument to that respective program, -A should always be before

oyakushev 2025-03-18T19:06:45.478049Z

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-?

🙏 1
prnc 2025-03-19T06:17:00.250589Z

🙏 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 🙂

😁 1