branch: elpa/cider
commit b11991245f6fb6e183757da66f47cc5d04221ae1
Author: Benjamin <[email protected]>
Commit: GitHub <[email protected]>
[Fix #3277] Fix cider-clojurescript-present-p (#3280)
---
cider.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/cider.el b/cider.el
index 116f6c7820..5031096f70 100644
--- a/cider.el
+++ b/cider.el
@@ -780,7 +780,12 @@ Generally you should not disable this unless you run into
some faulty check."
(defun cider-clojurescript-present-p ()
"Return non nil when ClojureScript is present."
- (nrepl-dict-get (cider-sync-tooling-eval "cljs.core/demunge") "value"))
+ (or
+ ;; This is nil for example for nbb.
+ (cider-library-present-p "cljs.core")
+ ;; demunge is not defined currently for normal cljs repls.
+ ;; So we end up making the two checks
+ (nrepl-dict-get (cider-sync-tooling-eval "cljs.core/demunge") "value")))
(defun cider-verify-clojurescript-is-present ()
"Check whether ClojureScript is present."