cursive icon indicating copy to clipboard operation
cursive copied to clipboard

"Cannot be resolved" warnings for macros in AERO and clojure.test

Open boschi opened this issue 1 year ago • 1 comments

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)))))

boschi avatar Oct 01 '23 21:10 boschi

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.

onetom avatar Mar 11 '24 07:03 onetom