cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
bozhidar 2020-11-29T07:46:48.143Z

Looking at the error it's some missing parameter in the nREPL request. Unexpected middleware errors are exactly what you'd expect them to be - an internal error in cider-nrepl that shouldn't have happened in the first place.

bozhidar 2020-11-29T07:48:58.143200Z

For that particular error it seems to me you've connected to some older instance of cider-nrepl, as in the past the request param for eldoc was named symbol and now it's named sym (to avoid shadowing the symbol function in the middleware code. Newer versions of the middleware support both param names for backwards compatibility, but the latest CIDER uses sym everywhere, so it can't work with older middleware.

bozhidar 2020-11-29T07:49:11.143400Z

I hope that makes it clear.

practicalli-john 2020-11-29T09:05:28.151400Z

Yes, that is very helpful indeed. Iโ€™ll check with the group as to what what versions of Cider middleware are being included when VSCode does itโ€™s Jack-in. Apart from this error, Cider is working really well with the VSCode live share port forwarding of the REPL, so if you are remotely collaborating on code with VSCode and Calva you can use Emacs too (although code changes only show when the file is saved by Emacs of course)

peey 2020-11-29T09:24:10.153900Z

I was exploring the cider debugger, and I have never used the "inspect" feature of the debugger (because the binding "p" is mis-interpreted by spacemacs as the paste command). What am I missing? What are other ways I could invoke it?

practicalli-john 2020-11-29T10:34:30.158300Z

@p.kushwaha97 examples of using Cider Inspect https://practicalli.github.io/spacemacs/evaluating-clojure/inspect.html My favourite feature is just leaving the cider-inspect window open, then all evaluations go there, even when using the usual evaluation commands If using Spacemacs develop, then I just added more key bindings for the rest of the cider-inspect functions

practicalli-john 2020-11-29T10:37:01.158500Z

https://github.com/syl20bnr/spacemacs/pull/14152

2๐Ÿ™Œ
peey 2020-11-29T10:52:55.158800Z

This is amazing. I just updated and used inspector for the first time, thanks for making it happen and writing that nice guide!

1๐Ÿ‘
practicalli-john 2020-11-29T11:38:18.159Z

I have a new video coming out in the next day or two that uses the cider-inspect tool a lot too... but I think that page covers most of it statically.