This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-08
Channels
- # announcements (12)
- # aws (4)
- # beginners (92)
- # calva (2)
- # cider (28)
- # clara (11)
- # clj-kondo (5)
- # cljdoc (9)
- # cljs-dev (195)
- # cljsjs (1)
- # clojure (82)
- # clojure-italy (18)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-spec (10)
- # clojure-uk (51)
- # clojurescript (40)
- # cursive (7)
- # datomic (19)
- # duct (9)
- # emacs (2)
- # figwheel (3)
- # fulcro (56)
- # graphql (8)
- # jobs (3)
- # luminus (2)
- # off-topic (15)
- # re-frame (5)
- # reitit (3)
- # ring (5)
- # shadow-cljs (22)
- # slack-help (2)
- # sql (51)
- # test-check (9)
- # vim (64)
- # yada (1)
I'm using flycheck-clojure
and I got the following error message when I visit a clojure buffer:
Error while checking syntax automatically: (void-function cider-default-connection)
how can I investigate more about the source of error? I saw on the web that it has something to do with cider version
but I am not sure for what version should I downgrade my cider without any major loss to fix this bug.
that hasn't been kept up to date with CIDER. The connection system is quite different now so you can't really fix it unless you want to take the task of rewriting a good bit
you could use https://github.com/candid82/flycheck-joker which uses static analysis and does a quite nice job
also a member @borkdude has made a new checker called https://github.com/borkdude/clj-kondo
i'm not actually sure how clj-konda differs from joker. but from his readme it appears he wants to focus on features not supported by joker so the two will complement each other
@dpsutton For one - clj-kondo is a regular Clojure project. I think that’s the biggest difference.
> that hasn’t been kept up to date with CIDER. The connection system is quite different now so you can’t really fix it unless you want to take the task of rewriting a good bit
I don’t think the changes are that big from a user’s perspective - probably just aliasing the cider-default-connection
to cider-current-connection
(or something along those lines) would work. I think flycheck-clojure
shouldn’t need big changes.
Btw, I don’t even see cider-default-connection
used here https://github.com/clojure-emacs/squiggly-clojure/blob/master/elisp/flycheck-clojure/flycheck-clojure.el
clj-kondo originated from things I missed from joker. there is some overlap. some things joker does better, but clj-kondo can find stuff joker can’t. so they work best together
I noticed that c-c c-k
doesn't work if the file is not part of the classpath (cli tools setup). In contrast evaluating forms one by one works fine, so Cider is clearly able to link the buffer to an nrepl session. Should this be considered a bug or are things working as intended?
I hit C-c C-k
, the minibuffer prints "Loading xyz...", in the REPL buffer none of the things from that namespace are available. No error is printed. Hope this makes more sense 😄
Hmm, that’s interesting. Frankly, I’m not quite certain what should happen in this case - doesn’t the compiler itself expect for the file to be on the classpath?
I decided to try to clean up the backlog using a bot, so let’s see how things are going to work out.