cursive
cursive copied to clipboard
incorrect arrity warning inside reader conditional in cljc file
This is a bit of a rare edge case, admittedly, but I thought that you might want to know about it anyway; so you can decide if you wish to investigate further (or not!).
I have code similar to the following snippet in several places in a project that requires a hash-map to have some additional fields attached server-side (.clj), but not client-side (.cljs):
(-> {:foo :bar
:qux :quxx}
#?(:clj (assoc :my-other-key "blah")))
I get the wavy underline warning: Incorrect arity 2 for clojure.core/assoc
This is still an issue in Cursive 1.12.4-2022.1.

I have just discovered that this issue relates to issue https://github.com/cursive-ide/cursive/issues/771.