Skip to content

Commit 751f170

Browse files
yuhan0bbatsov
authored andcommitted
Limit error overlay check to JVM runtime
1 parent 49b1527 commit 751f170

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cider-eval.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,11 @@ depending on the PHASE."
925925
(and cider-show-error-buffer
926926
(member phase (cider-clojure-compilation-error-phases))))
927927
;; Only show overlays for things that do look like an exception (#3587):
928-
(or (string-match-p cider-clojure-runtime-error-regexp err)
929-
(string-match-p cider-clojure-compilation-error-regexp err)))
928+
;; Note: only applicable to JVM Clojure error messages (#3687)
929+
(if (cider-runtime-clojure-p)
930+
(or (string-match-p cider-clojure-runtime-error-regexp err)
931+
(string-match-p cider-clojure-compilation-error-regexp err))
932+
t))
930933
;; Display errors as temporary overlays
931934
(let ((cider-result-use-clojure-font-lock nil)
932935
(trimmed-err (funcall cider-inline-error-message-function err)))

0 commit comments

Comments
 (0)