This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-20
Channels
- # announcements (1)
- # babashka (32)
- # beginners (100)
- # cider (43)
- # clj-kondo (4)
- # cljdoc (3)
- # cljs-dev (5)
- # cljsjs (2)
- # cljsrn (22)
- # clojure (170)
- # clojure-australia (27)
- # clojure-europe (25)
- # clojure-nl (3)
- # clojure-uk (76)
- # clojurescript (127)
- # conjure (14)
- # core-matrix (1)
- # cursive (9)
- # datomic (6)
- # defnpodcast (1)
- # emacs (32)
- # events (1)
- # expound (77)
- # fulcro (30)
- # graalvm (21)
- # graalvm-mobile (30)
- # helix (4)
- # honeysql (1)
- # hyperfiddle (1)
- # jackdaw (8)
- # jobs (6)
- # kaocha (1)
- # leiningen (4)
- # lsp (16)
- # malli (46)
- # meander (4)
- # off-topic (19)
- # pathom (10)
- # podcasts-discuss (1)
- # portal (2)
- # re-frame (7)
- # reagent (2)
- # releases (1)
- # remote-jobs (11)
- # rewrite-clj (8)
- # shadow-cljs (9)
- # tools-deps (243)
- # vim (1)
Morning folks 👋 . How are peoples days looking? Bug triage and fixing for me.
Morning all.
I've just done clojure-lsp clean-ns
for the first time and it feels sooo good.
That's cool. I hadn't looked at clojure-lsp because I assumed it was just for IDE developers. Down the rabbit hole we go ...
Here's my TLDR
dependabot updates for me. finishing off feature branches before starting anotherone 😄
I added this to my deps.edn
:aliases
{:lint-ns {:replace-deps {com.github.clojure-lsp/clojure-lsp {:mvn/version "2021.07.19-14.46.52"}}
:exec-fn clojure-lsp.api/clean-ns!
:exec-args {:dry? false}}}}
Then ran clojure -X:lint-ns
(as an aside, my project has dated deps and :replace-deps was needed to deal with a tasso logging version conflict which crashed things)
similar / overlapping
I suspect it's a superset / overlap of carve
(The verbose logging refers to using clj-kondo from memory)
right. I tried carve and was overwhelmed. started trying to use https://gist.github.com/borkdude/841d85d5ad04c517337166b3928697bd and ran into https://github.com/clj-kondo/clj-kondo/issues/1319
I've found carve useful and reliable.
yeah I just had so much unused code! the linked gist is a single symbol search for all usages
eg i was hoping i could integrate it into my IDE so that for a specific symbol I could find all usages
Ah, gotcha
I'm new to clojure-lsp but the brew installable command line tools include these:
clean-ns Organize ns form, removing unused requires/refers/imports and sorting alphabetically. format Format code using cljfmt. rename Rename a symbol and all references across the project, use --from and --to options.
Nice. The intellij integration works well too. Bit involved to setup but then red squiggles guide you.