This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-26
Channels
- # announcements (2)
- # babashka (55)
- # beginners (107)
- # calva (65)
- # cider (5)
- # clara (4)
- # clj-kondo (17)
- # cljs-dev (38)
- # cljsrn (16)
- # clojure (117)
- # clojure-australia (8)
- # clojure-europe (13)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-provo (2)
- # clojure-sweden (9)
- # clojure-taiwan (1)
- # clojure-uk (41)
- # clojurescript (40)
- # code-reviews (1)
- # conjure (40)
- # cursive (4)
- # datomic (11)
- # events (2)
- # fulcro (33)
- # graalvm (1)
- # jobs (2)
- # jobs-discuss (19)
- # lsp (18)
- # off-topic (58)
- # polylith (2)
- # quil (2)
- # react (28)
- # reagent (35)
- # reitit (3)
- # remote-jobs (1)
- # ring (9)
- # sci (76)
- # shadow-cljs (19)
- # sql (10)
- # testing (5)
- # vim (13)
- # xtdb (5)
When editing a (rather large) deps.edn file, something is adding 2 blank lines between a line comment and the keyword for an alias. I had assume this is cljfmt as lsp is configured to manage the formatting of code, but I have not seen any relevant rules to disable. Any idea if there is a rule to disable to stop these blank lines from being inserted
I never saw something like that, do you have a repro? Is that only happens when formatting the file with clojure-lsp?
Yes, this only happens when I have clojure-lsp managing the formatting with Emacs The file in question is https://github.com/practicalli/clojure-deps-edn/blob/live/deps.edn
Making an edit, especially adding new sections triggers 2 blank lines in what seems to be all the aliases.
Maybe @UE21H2HHD knows how to disable that?
It seems like an issue to raise on cljfmt. Thanks for trying this out. For now I can just kill the hunks that contain these unwanted changes using magit
@U05254DQM I managed to make a simpler repro:
{:foo 1
;; a
:bar 2}
Formatting this gives me a:
{:foo 1
;; a
:bar 2}
Oh just had a memory of fixing something around this area: https://github.com/weavejester/cljfmt/issues/209 Are you folks on cljfmt master?
@UE21H2HHD I am using on clojure-lsp latest cljfmt release, not master