@@ -604,6 +604,14 @@ dependencies."
604
604
605
605
; ;; ClojureScript REPL creation
606
606
607
+ (defcustom cider-check-cljs-repl-requirements t
608
+ " When non-nil will run the requirement checks for the different cljs repls.
609
+
610
+ Generally you should not disable this unless you run into some faulty check."
611
+ :type 'boolean
612
+ :safe #'booleanp
613
+ :version '(cider . " 0.17.0" ))
614
+
607
615
(defun cider-verify-clojurescript-is-present ()
608
616
" Check whether ClojureScript is present."
609
617
(unless (cider-library-present-p " clojurescript" )
@@ -775,14 +783,16 @@ Normally this would prompt for the ClojureScript REPL to start (e.g. Node,
775
783
Figwheel, etc), unless you've set `cider-default-cljs-repl' ."
776
784
(interactive (list (cider-current-connection)))
777
785
; ; We can't start a ClojureScript REPL without ClojureScript
778
- (cider-verify-clojurescript-is-present)
786
+ (when cider-check-cljs-repl-requirements
787
+ (cider-verify-clojurescript-is-present))
779
788
; ; Load variables in .dir-locals.el into the server process buffer, so
780
789
; ; cider-default-cljs-repl can be set for each project individually.
781
790
(hack-local-variables )
782
791
(let* ((cljs-repl-type (or cider-default-cljs-repl
783
792
(cider-select-cljs-repl)))
784
793
(cljs-repl-form (cider-cljs-repl-form cljs-repl-type)))
785
- (cider-verify-cljs-repl-requirements cljs-repl-type)
794
+ (when cider-check-cljs-repl-requirements
795
+ (cider-verify-cljs-repl-requirements cljs-repl-type))
786
796
; ; if all the requirements are met we can finally proceed with starting
787
797
; ; the ClojureScript REPL for `cljs-repl-type'
788
798
(let* ((nrepl-repl-buffer-name-template " *cider-repl%s(cljs)*" )
0 commit comments