This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-14
Channels
- # aws (6)
- # babashka (31)
- # beginners (69)
- # biff (9)
- # boot (9)
- # bristol-clojurians (1)
- # calva (20)
- # chlorine-clover (2)
- # cider (8)
- # cljsrn (24)
- # clojure (25)
- # clojure-norway (4)
- # clojure-spec (29)
- # clojure-uk (7)
- # conjure (23)
- # datahike (5)
- # datomic (39)
- # emacs (4)
- # fulcro (4)
- # graalvm (11)
- # honeysql (1)
- # lambdaisland (1)
- # leiningen (8)
- # liberator (1)
- # libpython-clj (3)
- # malli (6)
- # mxnet (1)
- # off-topic (94)
- # pedestal (13)
- # re-frame (4)
- # releases (2)
- # shadow-cljs (8)
- # spacemacs (22)
- # sql (9)
- # vim (1)
@borkdude: In working with that parser bug (which I think I have figured out now), one of my test texts puzzle me a bit. This:
(comment
#foo :bar
(foo #foo ('foo^' :bar))
#_ 'abc
#foo @~#(foo :bar) \space
\' {:foo (#foo '[1 2 3])} 'abc
#_#_
#foo
#bar
#baz
#{:foo (#foo '[1 2 3])}
#foo
'bar
\a [] "a"
)
Here, Calva's parser thinks the (comment ...)
form is fine, but clj-kondo complains about the opening paren not being matched. Which judgment is correct?can you make a smaller repro out of this which fails in clj-kondo but succeeds with JVM clojure?
Trying that shows me that it is Calva that is ”wrong”: This is the minimum repro:
(comment ^)
Calva doesn't care that the meta data is missing, but both kondo and clojure complains about an unmatched closing paren. Which is fine, Calva likes to be helpful with structure and I don't mind it doing a friendly interpretation of what is a complete form. 😃I wonder how you implemented it then. both clj-kondo and bb are based (indirectly) on tools.reader
Well, actually it isn't a full parser. It is a tokenizer, and then I have a token cursor that can navigate sexprs.
I can't really use tools.reader, because it croaks too easily, Calva needs to be much more resilient . 😃
Is anyone getting this command 'paredit.deleteBackward' not found
when hitting delete?
I have to hit Shift-Delete to delete a character but that can lead to bad paredit results
@gmercer, I thought I could reproduce the problem there a while, but it turns out I can't. Can you give us some more details about your os and such?
@pez I am and jacked in to both CLJ & CLJS using the re-frame template +shadow option, and everything seems fine. It was working two days before. I think I had the May 2020 Update downloaded but not applied and had to reboot. MacOS 10.14.6 Calva 2.0.103 Version: 1.46.0 Commit: a5d1cc28bb5da32ec67e86cc50f84c67cc690321 Date: 2020-06-10T08:59:06.977Z Electron: 7.3.1 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Darwin x64 18.7.0