cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
richiardiandrea 2020-08-08T02:19:40.022400Z

I think suitable enhanced completions got broken after a shadow-cljs changes...I wanted to have a look there but did not have time

Jim Newton 2020-08-08T08:51:36.024300Z

If I have a function with a long docstring, and I type in the buffer (my-function then emacs shows me the first few lines of the docstring in the minibuffer, when what I really want to see is the arglist. I suppose the arglist is at the end of the minibuffer, but it is obscured. Shouldn't they be shown in the other order?

Jim Newton 2020-08-08T08:53:20.024800Z

Jim Newton 2020-08-08T15:58:52.025800Z

If there a way in cider to see the values of the local variables when examining a stack trace?

dpsutton 2020-08-08T16:06:02.026100Z

i don't believe stack traces have any such information to provide

dpsutton 2020-08-08T16:06:35.026700Z

you can use (ex-info "boom" {:values :of-interest}) and these should be shown in the stack trace

Jim Newton 2020-08-08T16:11:13.027100Z

yes thats for stacktraces caused by my call to ex-info.

dpsutton 2020-08-08T16:11:30.027400Z

I thought it should work. Let me see

Jim Newton 2020-08-08T16:11:54.027700Z

pitty that local variables are not available in stack traces.

justinbarclay 2020-08-08T16:33:01.028600Z

I think what you're looking for is eldoc? https://docs.cider.mx/cider/config/eldoc.html

kiranshila 2020-08-08T16:38:45.030100Z

Hey everyone. In the piggieback docs, it says I can set :nrepl.middleware.print/print to nrepl.util.print/pr to force using cljs's pr. How exactly do I set that? Is that something I put into dir-locals?

Jim Newton 2020-08-08T17:02:46.030800Z

Yes, I have eldoc-mode enabled already. The problem is that the text of the docstring preceeds the arglist.

bozhidar 2020-08-08T17:11:29.031600Z

@jimka.issy You're getting the docstring, because for some reason this var wasn't resolved to a function type. You should check *nrepl-messages* to see what types was assigned to it by nREPL/cider-nrepl.

bozhidar 2020-08-08T17:13:27.031800Z

See https://docs.cider.mx/cider/0.26/usage/pretty_printing.html

kiranshila 2020-08-08T17:26:35.032Z

Thanks