cursive icon indicating copy to clipboard operation
cursive copied to clipboard

Cursive does not resolve API vars of Telemere library

Open gerdint opened this issue 9 months ago • 0 comments

Cursive cannot seem to make sense (i.e resolve) any of the vars in the taoensso.telemere ns of the Telemere library (such as event!)

Granted that I sometimes struggle to understand how that code works even when reading it, but the library prides itself offering "great in-IDE documentation" (by virtue of extensive docstrings), but at least in the case of Cursive they wont show.

The main API surface seems to be exposed through macros like this:

#?(:clj
   (let [base-opts {:kind :event, :level :info}]
     (defmacro event!?
       "id + ?level => allowed? Note unique arg order: [x opts] rather than [opts x]!"
       {:doc      (impl/signal-docstring :event!)
        :arglists (impl/signal-arglists  :event!)}
       ([   opts-or-id]    `(impl/signal!        ~(merge-or-assoc-opts base-opts &form :id    opts-or-id)))
       ([id opts-or-level] `(impl/signal! ~(assoc (merge-or-assoc-opts base-opts &form :level opts-or-level) :id id))))))

Perhaps too complex?

I am using Cursive 1.14.1-eap2-2024.2 on macOS.

gerdint avatar Mar 26 '25 11:03 gerdint