This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-21
Channels
- # announcements (3)
- # babashka (98)
- # beginners (69)
- # chlorine-clover (6)
- # cider (24)
- # cljsrn (2)
- # clojure (97)
- # clojure-australia (2)
- # clojure-berlin (6)
- # clojure-dev (57)
- # clojure-dusseldorf (4)
- # clojure-europe (19)
- # clojure-italy (5)
- # clojure-nl (10)
- # clojure-seattle (1)
- # clojure-uk (44)
- # clojuredesign-podcast (13)
- # clojurescript (45)
- # cursive (4)
- # data-science (1)
- # datomic (32)
- # emacs (7)
- # events (5)
- # fulcro (17)
- # java (12)
- # jobs (1)
- # lumo (2)
- # malli (5)
- # observability (16)
- # off-topic (1)
- # pathom (3)
- # pedestal (4)
- # rdf (14)
- # re-frame (54)
- # reagent (4)
- # releases (3)
- # remote-jobs (1)
- # reveal (55)
- # shadow-cljs (34)
- # spacemacs (14)
- # specter (9)
- # tools-deps (16)
- # xtdb (7)
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?
Thanksdo 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 [])
)
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
➕ 1