This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-08
Channels
- # announcements (3)
- # babashka (3)
- # beginners (25)
- # calva (12)
- # cider (58)
- # clara (11)
- # clj-kondo (19)
- # cljsrn (2)
- # clojure (84)
- # clojure-austin (1)
- # clojure-europe (5)
- # clojure-nl (4)
- # clojure-spec (23)
- # clojure-uk (53)
- # clojuredesign-podcast (5)
- # clojurescript (24)
- # core-async (57)
- # cursive (16)
- # datomic (39)
- # emacs (1)
- # fulcro (40)
- # funcool (2)
- # graphql (17)
- # jackdaw (31)
- # jobs (2)
- # joker (3)
- # malli (7)
- # off-topic (12)
- # re-frame (9)
- # reagent (2)
- # reitit (1)
- # ring (4)
- # shadow-cljs (170)
- # sql (36)
- # tools-deps (5)
- # xtdb (20)
I'm seeing different linter errors on the CLI and in Spacemacs. On the CLI I'm running clj-kondo v2019.10.04-alpha
; in spacemacs, I'm running (clojure :variables clojure-enable-linters 'clj-kondo ...)
ah, that looks more correct! So it looks like the default runner for flycheck is incorrectly configured
if I run flycheck-select-checker
and set it to clj-kondo-clj
I'm seeing the correct thing; any idea what to add to my .spacemacs to make sure it loads by default for clj/cljs/cljc/edn files?
I just chose the nuclear option, and temporarily removed joker
from the path. Looks like it was always selecting joker over clj-kondo, even though I removed joker from my .spacemacs
@borkdude is it a known issue where emacs is apparently eating the last character of the error message?
I haven't seen this behavior before. There is spacemacs documention for kondo here: https://github.com/borkdude/clj-kondo/blob/master/doc/editor-integration.md#spacemacs And in the #spacemacs there are several kondo users.
Thanks, I've followed the wiki instructions per the develop
branch; 🤷 I guess I'll look more into it later.
Re this issue: https://github.com/borkdude/clj-kondo/issues/514 The motivating examples are parsing this:
{) ; => Unmatched delimiter: ) [at line 1, column 2]
and this:
[ ; => Unexpected EOF. [at line 1, column 2]
as discussed: maybe it's an idea to keep a reference to last opened delimiter. when Unmatched or Unexpected happened, we can include the row and col of that last opened delimiter (if there is one).
What should the error messages actually be in this case?
For the second example, if I forget to close a )
in a function on line 5 of a 300 line file, the error is currently that there was an unexpected EOF on line 300, not that was an unclosed paren on line 5. So there error message is 295 lines away from the error.