This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-09
Channels
- # announcements (14)
- # architecture (42)
- # babashka (23)
- # beginners (37)
- # biff (8)
- # calva (2)
- # cider (3)
- # clara (42)
- # clerk (14)
- # clojure (55)
- # clojure-brasil (3)
- # clojure-dev (5)
- # clojure-europe (18)
- # clojure-hungary (88)
- # clojure-losangeles (3)
- # clojure-nl (1)
- # clojure-norway (66)
- # clojure-uk (9)
- # clojurescript (16)
- # core-logic (16)
- # datomic (6)
- # fulcro (32)
- # hyperfiddle (25)
- # instaparse (12)
- # joyride (2)
- # lsp (13)
- # malli (15)
- # off-topic (50)
- # polylith (11)
- # portal (3)
- # re-frame (2)
- # reitit (2)
- # sci (8)
- # shadow-cljs (16)
- # tools-deps (13)
- # xtdb (5)
Is there a way to show trailing whitespace with clojure-lsp? I am seeing warnings of that kind in lua and python but not in clojure...
there is an issue for this in clj-kondo, https://github.com/clj-kondo/clj-kondo/issues/1852
I think the issue should really be called :trailing-whitespace
maybe with some config options. feel free to provide some feedback there
Is there a way to export the lsp
’s effective .cljfmt.edn
file? I’m trying to write a pre-commit hook for formatting and clojure-lsp format --filenames $STAGED
is very slow to start. Was hoping to be able to export the config and just run cljfmt
with the standalone config.
you can get that from a running clojure-lsp, but then that doesn't make sense if performance is the problem.
That would be cool. It would be great to use all the lsp goodies as a pre-commit hook eventually.
one thing we do during format task is to https://github.com/clojure-lsp/clojure-lsp/blob/84aba99a8348cc854e14b406420d0f54fe27b7fa/lib/src/clojure_lsp/internal_api.clj#L359 for analysis to avoid inconsistency, but we don't really use analysis for format, so maybe that would make the same as calling cljfmt
there is specific things about checking :style meta that we use analysis, but that's a really specific feature, so not sure that would be a big deal
Add me to the list of ppl who have wanted fast cljfmt via clojure-lsp for a long time
Feel free to create a issue about the performance, would be nice to have a comparassion like: cljfmt takes x and clojure-lsp y for this file
Done. Here’s the https://github.com/clojure-lsp/clojure-lsp/issues/1723. Thanks!