File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 32
32
* [ #2307 ] ( https://github.com/clojure-emacs/cider/pull/2307 ) : Use a better error when a cljs repl form cannot be found.
33
33
* Fix the broken test selector functionality.
34
34
* [ #2291 ] ( https://github.com/clojure-emacs/cider/issues/2291 ) : ` cider-use-tooltips ` custom variable works as expected.
35
+ * [ #2424 ] ( https://github.com/clojure-emacs/cider/issues/2424 ) : Fallback to ` lein ` as the default jack-in command when ` clojure ` is not present.
35
36
36
37
### Changes
37
38
Original file line number Diff line number Diff line change @@ -214,12 +214,14 @@ By default we favor the project-specific shadow-cljs over the system-wide."
214
214
:safe #'stringp
215
215
:package-version '(cider . " 0.10.0" ))
216
216
217
- (defcustom cider-jack-in-default " clojure-cli"
217
+ (defcustom cider-jack-in-default ( if ( executable-find " clojure" ) " clojure -cli" " lein " )
218
218
" The default tool to use when doing `cider-jack-in' outside a project.
219
219
This value will only be consulted when no identifying file types, i.e.
220
220
project.clj for leiningen or build.boot for boot, could be found.
221
221
222
- As the Clojure CLI is bundled with Clojure itself, it's the default."
222
+ As the Clojure CLI is bundled with Clojure itself, it's the default.
223
+ In the absence of the Clojure CLI (e.g. on Windows), we fallback
224
+ to Leiningen."
223
225
:type '(choice (const " lein" )
224
226
(const " boot" )
225
227
(const " clojure-cli" )
@@ -1369,6 +1371,8 @@ PROJECT-DIR defaults to the current project."
1369
1371
choices nil t nil nil default ))
1370
1372
(choices
1371
1373
(car choices))
1374
+ ; ; if we're outside a project we fallback to whatever tool
1375
+ ; ; is specified in `cider-jack-in-default' (normally clojure-cli)
1372
1376
(t cider-jack-in-default))))
1373
1377
1374
1378
You can’t perform that action at this time.
0 commit comments