Fork me on GitHub
#cider
<
2019-05-08
>
iagwanderson04:05:21

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)

iagwanderson04:05:43

how can I investigate more about the source of error? I saw on the web that it has something to do with cider version

iagwanderson04:05:06

but I am not sure for what version should I downgrade my cider without any major loss to fix this bug.

dpsutton04:05:27

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

dpsutton04:05:39

you could use https://github.com/candid82/flycheck-joker which uses static analysis and does a quite nice job

dpsutton04:05:25

also a member @borkdude has made a new checker called https://github.com/borkdude/clj-kondo

dpsutton04:05:31

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

bozhidar06:05:06

@dpsutton For one - clj-kondo is a regular Clojure project. I think that’s the biggest difference.

bozhidar06:05:34

> 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

bozhidar06:05:34

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.

bozhidar06:05:16

(note that flycheck-clojure is a very simple 200-lines of code type of project)

borkdude08:05:29

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

benedek09:05:22

are you aware of clojure-lsp @borkdude? somewhat parallel project too

benedek09:05:22

it is not a linter tho but an other rewrite-clj based parser/analyzer of sorts

borkdude09:05:05

I’ll check it out, thanks

martinklepsch16:05:25

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?

bozhidar16:05:54

Define “can’t eval”. 🙂

martinklepsch16:05:03

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 😄

bozhidar17:05:42

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?

dpsutton17:05:26

cider's github is killing my inbox today 😆

bozhidar17:05:38

Sorry about that!

dpsutton17:05:40

(but i'm glad for it)

dpsutton17:05:51

easy to archive them. i'll be glad to have a more active list of issues

bozhidar17:05:07

I decided to try to clean up the backlog using a bot, so let’s see how things are going to work out.

bozhidar17:05:38

I’m hoping that the end result is going to be a small list of really important tickets (and hopefully more people willing to tackle those).

dpsutton17:05:54

i think its a great idea. good thinking