Fork me on GitHub
#cider
<
2018-01-25
>
benedek05:01:51

you can use it combined it with print-level

benedek05:01:59

also check out unrepl (if you are interested) it does some amazing things in this department afaik

bozhidar07:01:56

Elided collections?

bozhidar07:01:47

I think they are still based on the number of items in a collection. Anything else would be pretty controversial and technically speaking there’s 0 preventing us from doing this with nREPL - it just never came up/there was never time to work on this.

bozhidar07:01:42

@mfm Nothing like this currently exists, but it’s definitely doable. Just a matter of time, which I don’t have much of. If someone’s interested in working on it - I can provide tips and help. Ideally this should handled in the middleware level - hooking into eval and modifying its behaviour, but it can also be handled in Emacs directly - by just counting the size of the response chunks and truncating them after some point.

lemons07:01:40

nevermind. figured it out

dominicm08:01:28

Not on github to "claim" this, but I'll take on the nrepl part of cider jack in for clojure tools

bozhidar10:01:51

@dominicm Great!

hlolli16:01:20

How does one tell cider to print the stacktrace into the repl buffer instead of opening *cider-error*?

dpsutton16:01:24

i don't think you can right now

dpsutton16:01:31

although it looks like it would be easier to modify

dpsutton16:01:45

(defun cider-default-err-handler ()
      "This function determines how the error buffer is shown.
    It delegates the actual error content to the eval or op handler."
      (if (cider-nrepl-op-supported-p "stacktrace")
          (cider-default-err-op-handler)
        (cider-default-err-eval-handler)))

hlolli16:01:58

ok, maybe there's a trick that q quits the buffer. Haven't used cider for a while, generally dislike haveing many buffers opened.

dpsutton16:01:53

the default err-eval-handler will just print the stacktrace. if you wanted to create a defcustom so that logic was stacktrace op is supported and desired then ...

hlolli16:01:54

ok nice, so I guess I can use this function to overwrite. Will do 🙂 thanks

qqq17:01:30

I can't believe the name of cider is cider -- is it a slack default, or a clojurians custom ?

xiongtx21:01:02

@bozhidar I’m not getting notifications for issues filed against helm-cider: https://github.com/clojure-emacs/helm-cider/issues Maybe b/c I’m not a member of that organization? Can you fix that?

dominicm22:01:11

@U2J7JRTDX do you watch the repository?

xiongtx22:01:04

Oh, that should work 👍

richiardiandrea21:01:56

Helm cider is awesome - thanks for working on it