This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-09
Channels
- # announcements (5)
- # aws (5)
- # babashka (7)
- # beginners (152)
- # cider (10)
- # clj-kondo (30)
- # clj-on-windows (1)
- # cljs-dev (14)
- # cljsrn (19)
- # clojure (94)
- # clojure-australia (4)
- # clojure-europe (43)
- # clojure-nl (2)
- # clojure-uk (11)
- # clojurescript (16)
- # clojureverse-ops (5)
- # code-reviews (7)
- # community-development (6)
- # core-async (29)
- # cursive (50)
- # datomic (22)
- # docker (10)
- # figwheel-main (3)
- # fulcro (4)
- # graalvm (1)
- # introduce-yourself (2)
- # kaocha (9)
- # lambdaisland (2)
- # lsp (19)
- # malli (37)
- # off-topic (50)
- # polylith (8)
- # portal (1)
- # reagent (10)
- # rum (1)
- # shadow-cljs (24)
- # spacemacs (14)
- # yada (2)
Out of curiosity, can clojure-lsp do some interesting things "as you type"? i.e. prior to saving the given file
would seem a good fit for clojure-lsp's approach. this is less conceivable in CIDER whch tends to depend on clojure.core/require
etc
Like, diagnostics, definition, reference and a lot of others just rely on server know that there is a buffer ( not really a saved file)
oh wow, happy to learn this! as you might guess I'm not using lsp atm... would love to have an hybrid setup at some point
a particularly tricky case (at least in my head) would be typing a let
and getting an insight based on the let bindings before I save
For example:
(letfn [f ([x] (* x x))]
(f :wrong :number :of :args))
can clojure-lsp possibly know on the spot that f is receiving a wrong arity? Instantly?
basically I'm asking if an analysis is being performed as-you-type. clj-kondo, being so fast, would seem to enable such an approach.
but still it would be a pretty impressive feat I reckonYes, clojure-lsp calls clj-kondo as you type (with a little debounce), so that would work