This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-21
Channels
- # announcements (4)
- # aws (29)
- # aws-lambda (1)
- # babashka (21)
- # beginners (143)
- # calva (47)
- # cider (31)
- # clj-kondo (24)
- # cljsrn (4)
- # clojure (70)
- # clojure-australia (3)
- # clojure-czech (1)
- # clojure-europe (97)
- # clojure-greece (4)
- # clojure-nl (3)
- # clojure-uk (45)
- # clojurescript (70)
- # code-reviews (1)
- # conjure (7)
- # cursive (10)
- # datomic (13)
- # duct (5)
- # emacs (1)
- # fulcro (38)
- # graalvm (1)
- # graphql (9)
- # honeysql (13)
- # integrant (33)
- # jobs (14)
- # jobs-rus (1)
- # malli (7)
- # off-topic (72)
- # pathom (1)
- # re-frame (11)
- # reitit (9)
- # remote-jobs (2)
- # sci (11)
- # shadow-cljs (9)
- # sql (5)
- # tools-deps (5)
- # xtdb (6)
hey there, at the minute in cursive when I try and use httpkit.client
I get a warning that it can't resolve the functions. I had a quick look into it and it looks like it might be because httpkit uses a macro to generate the functions under client
. Is it expected that cursive wouldn't figure them out?
It's a minor annoyance but it would be nice to have autocomplete on these if possible.
This is the bit of httpkit with the macros: https://github.com/http-kit/http-kit/blob/master/src/org/httpkit/client.clj#L297
and please see attached image for what cursive says about it
I just ran into this yesterday. I resolved by instructing cursive to resolve defreq
as declare
ah that would be good! Could I ask where I would instruct cursive to do so?
Not a perfect solution but it keeps cursive from generating warnings
Sure. Go to defreq macro definition. Put the cursor on defreq and do an alt-enter
You'll get a popup menu with an option for "Resolve defreq as..."
Select "Specify"
and choose declare from the next menu
I'm giving these instructions from memory. If they aren't right, lmk