cursive
cursive copied to clipboard
"Cannot be resolved" warnings for macros in AERO and clojure.test
When referring to AERO reader, Cursive issues a warning that reader cannot be resolved
, but reader
is a defmulti
in AERO's namespace.
Example:
(ns my.namespace
(:require [aero.core :as aero]))
(defmethod aero/reader 'regex [_opts _tag value]
(re-pattern (str value)))
Similarly, using Clojure's TEST, the checks thrown?
and thrown-with-msg?
get highlighted in yellow saying they "cannot be resolved".
Example:
(ns my.namespace
(:require [clojure.test :refer :all]))
(deftest check-validation
(is (thrown? ArithmeticException
(fn [] (/ 1 0)))))
I'm not sure about the Aero issue, but the resolution problem with thrown?
& thrown-with-msg?
is the same issue as https://github.com/cursive-ide/cursive/issues/238 which is not yet resolved.