This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-28
Channels
- # announcements (1)
- # beginners (43)
- # calva (7)
- # clojure (48)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-norway (24)
- # clojure-uk (4)
- # clojuredesign-podcast (4)
- # clojurescript (11)
- # conjure (15)
- # core-async (1)
- # cursive (1)
- # datomic (33)
- # events (1)
- # fulcro (2)
- # humbleui (21)
- # hyperfiddle (34)
- # introduce-yourself (1)
- # joyride (24)
- # lambdaisland (8)
- # lsp (3)
- # malli (30)
- # meander (2)
- # observability (5)
- # off-topic (2)
- # pathom (3)
- # polylith (26)
- # portal (5)
- # re-frame (28)
- # shadow-cljs (7)
- # spacemacs (2)
- # xtdb (6)
Was there any change to the recursive align command in Calva? I used it to align let forms and maps (like described here: https://github.com/weavejester/cljfmt/issues/36) but it seems it only works for maps now. I haven't coded Clojure for a few weeks and tried to update to the latest versions, so the change causing this might not be recent. Another bug I noticed is that it now won't align maps properly for strings and keywords (as in screenshot below): Thank you for any pointers on how to solve this, I really loved this feature 🙂
There has been no changes to this feature in something like five years, 😃 It’s using an ancient version of cljfmt. See https://calva.io/formatting/#about-aligning-associative-forms Do you have custom cljfmt settings for Calva?
Nope, but playing more with it, I think it's something with the file itself. It does align in most cases, and it doesn't align on the function below. Not sure what throws it off... Will try to understand what's going on when I have more time.
I think it is that the align feature is buggy. It was never merged to cljfmt for a reason.
Might be... Since I love it so much, I need to find time to write a better one 🙂
😃 You may not need to. There is a new PR on cljfmt which James Reeves has signaled he wants to merge.
That would be nice 🙂 I'll look it up.