Skip to content

Commit b119912

Browse files
[Fix #3277] Fix cider-clojurescript-present-p (#3280)
1 parent c132951 commit b119912

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cider.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,12 @@ Generally you should not disable this unless you run into some faulty check."
780780

781781
(defun cider-clojurescript-present-p ()
782782
"Return non nil when ClojureScript is present."
783-
(nrepl-dict-get (cider-sync-tooling-eval "cljs.core/demunge") "value"))
783+
(or
784+
;; This is nil for example for nbb.
785+
(cider-library-present-p "cljs.core")
786+
;; demunge is not defined currently for normal cljs repls.
787+
;; So we end up making the two checks
788+
(nrepl-dict-get (cider-sync-tooling-eval "cljs.core/demunge") "value")))
784789

785790
(defun cider-verify-clojurescript-is-present ()
786791
"Check whether ClojureScript is present."

0 commit comments

Comments
 (0)