cursive

Issues at: https://git.io/cursive-issues
lambdam 2020-10-21T07:02:09.147200Z

Hello, a new and "deeper" question about Cursive. I like to use https://github.com/jeaye/orchestra and its defn-spec macro. In a namespace, I have two functions:

(defn-spec start-server ::aleph-webserver
  [config ::config]
  ...)

(defn stop-server [server]
  (.close server))
In another namespace the text completion gives me stop-server but not start-server . The completion works well in emacs though. The mechanism for code "understanding" seems different. Does Cursive use nrepl for that or does it use an internal mechanism? Thanks

helios 2020-10-21T11:41:19.148600Z

do you have a hint for using cursive with http://juxt.aero macro usetime ? (https://github.com/juxt/aero/blob/master/src/aero/impl/macro.cljc#L12) Usage is

(macro/usetime
  (defn foo [])
)

helios 2020-10-22T14:49:25.150800Z

thanks!

cfleming 2020-10-21T20:22:02.148800Z

Do you mean so that it will recognise the defn inside it? You could resolve it as clojure.core/do, I think that should do it. https://cursive-ide.com/userguide/macros.html#customising-symbol-resolution