This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-30
Channels
- # announcements (5)
- # babashka (9)
- # beginners (48)
- # calva (300)
- # clj-kondo (9)
- # clojure (44)
- # clojure-austin (2)
- # clojure-europe (14)
- # clojure-uk (4)
- # clojurescript (1)
- # conjure (2)
- # datascript (3)
- # datomic (8)
- # exercism (5)
- # fulcro (1)
- # luminus (4)
- # music (1)
- # off-topic (12)
- # pathom (6)
- # rdf (18)
- # react (8)
- # sci (78)
- # shadow-cljs (12)
- # spacemacs (4)
- # tools-build (5)
- # tools-deps (26)
- # vim (4)
- # xtdb (8)
On clojure-lsp we have a feedback progress bar both on Editors and CLI, we update the progress bar at each stage of clojure-lsp startup, and usually the part which takes more time is external analysis (when not cached) and project analysis. ATM we have a (not that) smart update for external deps, updating according to the batch calls to kondo (3 batches means 20/45/60 % for example) and for project analysis we hardcode update to 95%, I was wondering if we could have a kondo hook for each path analyzed so we can have more precise feedback at lsp side 🧵
For example, if we know we are calling kondo for a project classpath with 80 filenames, I'd expect kondo to call a callback function 80 times for each file which we could then update the progress bar
the 2 call (project source code analysis) is a little bit tricky as we usually pass folders not specific filenames (`[ "src/" "test"` etc), so it'd be fantastic if kondo could expand and return the hooks for each file