Fork me on GitHub
#cursive
<
2022-06-12
>
danieroux21:06:27

Sanity checking. I expected a "Resolve cursive-macro.the-macro/defc as..." to popup. And it is not? What am I missing?

danieroux21:06:48

cursive_macro/macro_user.cljs:

(ns cursive-macro.macro-user
  (:require [cursive-macro.the-macro :refer [defc]]))

(defc Component
      [this props])
cursive_macro/the_macro.cljc
(ns cursive-macro.the-macro
  #?(:cljs (:require-macros cursive-macro.the-macro)))

(defmacro defc
  [& args])

danieroux21:06:11

And this leads to my Component not being resolved. Which is surprising:

AJ Jaro00:06:13

It looks like you might be right-clicking on the definition of the macro instead of the implementation. Can you try right-clicking the 'defc' by Component instead?

cfleming04:06:30

Either should work. Can you check under Preferences | Editor | Intentions | Clojure and make sure that Resolution is enabled?

danieroux11:06:18

... It was not. Thank you!