Fork me on GitHub
#cider
<
2018-12-19
>
eallik14:12:53

how to make *cider-error* pop up without delay after exceptions from repl?

macrobartfast15:12:26

I'm confused about the error message improvements in 1.10... (let [x]) produces

Syntax error macroexpanding clojure.core/let at (form-init1640041536431823190.clj:1:1).
[x] - failed: even-number-of-forms? at: [:bindings] spec: :clojure.core.specs.alpha/bindings
and 1.8 produces:
IllegalArgumentException let requires an even number of forms in binding vector in scratchapp.core:1  clojure.core/let (core.clj:4333)
1.8 seems much more noob friendly/clear... what am I not understanding?

futuro16:12:13

Is this the "error messages got worse so they could get better" conversation that's been happening in the community later?

futuro16:12:05

In that macro errors are more easily machine consumable, but the printing of their values became less beginner friendly in the interim?

dpsutton16:12:04

I'm not sure there is much CIDER can/should do here. But i do believe that some of the error messages were hand tailored in older Clojures and these have been removed in favor of the current approach. I think there is a very informative ticket in jira that you should read and then if you still have questions you can chat with alex. although this was a ton of work and was just released two days ago so it may not be the best time to bring up things

macrobartfast20:12:34

I'm for sure am really grateful for all the work in this area and in no way am intending to say it's better or worse... I am just getting familiarized with things, and @futuro’s mention of 'more easily machine consumable' is probably what's going on.

macrobartfast20:12:30

I'm guessing the new error messages are going to be more more amenable to being integrated with things that will really explain things better to the user.

dominicm21:12:44

I think expound being integrated directly into cider would be a big win. It's an idea I've been thinking about for a while.

vigilancetech21:12:32

what is the current strategy for getting rid of the WARNING: clj-refactor and refactor-nrepl are out of sync. message? I have these in my dependencies:

[cider/cider-nrepl "0.18.0"]
 [refactor-nrepl "2.4.0"]

vigilancetech21:12:08

although the error message shows Their versions are 2.4.0 (package: 20180826.2149) and n/a, respectively.

dpsutton21:12:28

check the output of (cljr--version)

vigilancetech21:12:09

(cljr--version)
"2.4.0 (package: 20180826.2149)"
(cljr-version)
"clj-refactor 2.4.0 (package: 20180826.2149), refactor-nrepl is unreachable"

dpsutton22:12:46

and what is the jack in command that CIDER issued? you can find this in the *Messages* buffer (if you're not familiar)

vigilancetech22:12:48

@dpsutton nvm, I got it. I deleted the clj-refactor cache and restarted emacs