On CIDER 0.18 (the current stable version) you need to set cider-jack-in-default
to a symbol, not a string (e.g. 'lein
).
(define-obsolete-variable-alias 'cider-default-repl-command 'cider-jack-in-default)
(defcustom cider-jack-in-default (if (executable-find "clojure") 'clojure-cli 'lein)
"The default tool to use when doing `cider-jack-in' outside a project.
This value will only be consulted when no identifying file types, i.e.
project.clj for leiningen or build.boot for boot, could be found.
As the Clojure CLI is bundled with Clojure itself, it's the default.
In the absence of the Clojure CLI (e.g. on Windows), we fallback
to Leiningen."
:type '(choice (const 'lein)
(const 'boot)
(const 'clojure-cli)
(const 'shadow-cljs)
(const 'gradle))
:group 'cider
:safe #'symbolp
:package-version '(cider . "0.9.0"))
The old variable did take a string, that's true. Without seeing the complete stacktrace I can't be certain what's exactly going wrong for you. Generally it's best to bring up such problems on CIDER's issue tracker.
In case someone's wondering why now CIDER uses clojure-cli
instead of lein
for a projectless REPLs - our thinking was that the Clojure CLI is the only tool we can assume that every Clojure user would have, so it made for a safer default.