This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-17
Channels
- # aleph (4)
- # announcements (2)
- # babashka (85)
- # beginners (136)
- # calva (72)
- # clj-commons (32)
- # clj-kondo (7)
- # cljs-dev (3)
- # clojure (117)
- # clojure-europe (38)
- # clojure-nl (3)
- # clojure-norway (1)
- # clojure-uk (4)
- # clojurescript (19)
- # conjure (38)
- # core-logic (2)
- # cursive (10)
- # datalevin (1)
- # datalog (1)
- # datomic (6)
- # events (2)
- # fulcro (16)
- # google-cloud (5)
- # graphql (10)
- # gratitude (3)
- # hugsql (3)
- # luminus (5)
- # membrane-term (12)
- # missionary (2)
- # nextjournal (5)
- # off-topic (3)
- # pedestal (2)
- # polylith (7)
- # portal (3)
- # re-frame (6)
- # reagent (26)
- # reclojure (8)
- # releases (3)
- # reveal (5)
- # shadow-cljs (14)
- # spacemacs (20)
- # sql (3)
- # tools-build (3)
- # web-security (9)
Hmmm… I do not seem to be allowed to change the indentation for defonce or other Clojure core forms inline any longer…?
Is the problem only with those forms, or with all forms? If it’s all forms, what can happen is that the intention gets disabled. Check Editor | Intentions | Clojure.
I haven’t been consistently able to edit them inline for maybe half a year. Sometimes it’s possible, sometime it isn’t, and I have no idea why it changes. That issue seems to be present with all Clojure core forms, but not other forms. The defonce
problem is the fact that it is does not seem to be included in the list of indentation rules in preferences, only cljs.core.defonce
is.
It’s now working on my work machine (an Intel Macbook pro), but not working on my ARM Macbook Air. It’s entirely possible that it’s just something weird in my setup.
I sync settings between different machines a settings repository, so maybe that can screw things up? It does seem a bit wonky sometimes.
it used to be the case the case that you could right click and configure indentation for Clojure core forms, but that is not possible any longer. Instead, there is a panel in settings where all of the built-in forms are listed (and I guess this is where you’re supposed to change it now), but defonce is not a part of it, only cljs.core.defonce. I guess it was omitted by mistake? It would make sense to just default it to the same indentation behaviour as def
(which is what I usually change it to anyway).
@simongray that sounds similar to what I was seeing above. Are you by chance editing a cljc file?