This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-16
Channels
- # announcements (1)
- # aws (6)
- # babashka (17)
- # beginners (30)
- # calva (12)
- # cider (25)
- # circleci (2)
- # clojure (42)
- # clojure-australia (8)
- # clojure-czech (1)
- # clojure-europe (30)
- # clojure-france (52)
- # clojure-italy (2)
- # clojure-nl (16)
- # clojure-serbia (3)
- # clojure-uk (10)
- # clojurescript (40)
- # core-async (5)
- # cursive (24)
- # datalog (7)
- # datomic (8)
- # emacs (4)
- # events (1)
- # figwheel-main (3)
- # fulcro (2)
- # helix (5)
- # heroku (1)
- # kaocha (6)
- # leiningen (3)
- # malli (11)
- # music (5)
- # off-topic (20)
- # practicalli (1)
- # re-frame (4)
- # react (8)
- # reitit (14)
- # rewrite-clj (5)
- # rum (2)
- # schema (2)
- # shadow-cljs (23)
- # vrac (28)
- # wasm (4)
- # xtdb (12)
- # yada (5)
Calva's paredit seems to be a bit too fussy about deleting #
characters before parens - the only way I can do it is by highlighting the #
and pressing backspace:
#(fn [] oops) ;; <- try to delete the #
#{1 2 3} ;; same here
@qythium, it’s because Calva sees it as an opening #(
bracket, starting a literal lambda. I’ve noticed this myself when having an ignore marker (`#) before the function and trying to delete it. First it deletes the
then it thinks it is a
#(` bracket. Please file an issue about it, I should be able to figure something out. As a workaround, use alt+backspace
to delete any character without Calva Paredit getting in the way.
Can I just say how awesome the "infer parens from indentation" command is 🙂 It's like Parinfer on-demand without the constant worrying that it'll screw something up, and it really deserves a better default keybinding
I bound it to Shift-Tab for a nice symmetry with the auto-indentation command:
Tab
reformats your code according to the structure <-> Shift-Tab
restructures the code according to the formatting.
Un-indenting can be still be done with the default cmd-[
binding.
Maybe interfere isn't the right word, I mean how when you have
(wrongly (indented
f)) ;; <- cursor after f
and try to press tab
to reindent, but at the last millisecond vscode decides to show the popup and it ends up triggering the completion, turning f
into false
.It's not really an issue per se, maybe related to editor philosophies - I'm used to Emacs where keybinding contexts are mostly deterministic 😛
I just released Calva https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.188, fixing the Getting Started, and Standalone REPLs for some Windows users. It took me and @borkdude more than two weeks to get it reproducable (I even bought a PC for this) and then to track it down and then, Borkdude being Borkdude, he fixed it of course. https://github.com/borkdude/deps.clj is an amazing tool. On Windows it is a safer bet than the official clojure
CLI tools, I would say. Thanks also to @luanprinsmain for reporting and for sticking to it testing stuff for us while he had the only machine where the error could be reproduced. Happy Friday!