Fork me on GitHub
#cider
<
2017-03-27
>
lvh01:03:17

Huh. Can’t tell if it’s the new cider version or not but displaying a largeish (and even smaller) data structures in the repl window is super slow and makes Emacs take 100% CPU for a while 😕 cider-inspect seems to work fine

gonewest81805:03:49

I’ve seen that too. As recently as today, I accidentally evaluated a form that produced a list with about a half million integers. I ended up losing patience and force-quitting emacs.

hans06:03:16

There will always be the point when the data you're dealing with is too large for your IDE to completely print. I've got this in my user profile to deal with it:

:repl-options {:init (do (set! *print-length* 50)
                                 (set! *print-level* 10))}

gonewest81806:03:03

aha, very helpful, thanks.

bozhidar09:03:58

Nothing has been changed about this in ages. There are a few tickets about trying to profile and optimize the REPL handling of large data structures, but this has been an issue since the early days.

bozhidar09:03:41

That’s one very interesting idea to alleviate the problem https://github.com/clojure-emacs/cider/issues/1934

bozhidar09:03:52

Unfortunately I have to time to work on it

bozhidar09:03:14

it shouldn’t be very hard to implement something along those lines, though

bfay15:03:05

What do you all get when you try eval’ing

(keyword "\"|”)
in cider?

bfay15:03:17

Cause I am getting something like:

error in process filter: Search failed: “\\(\\s-\\|^\\|#\\|(\\|\\[\\|{\\)\\(\”\\)"

xiongtx01:03:24

Can confirm. Mind filing an issue to CIDER? https://github.com/clojure-emacs/cider/issues/new

xiongtx01:03:42

However, keep in mind that clj has rules r.e. which chars are allowed in symbols/keywords. and | are invalid, although you can get away with them for now. https://clojure.org/reference/reader#_symbols

bfay13:03:05

Thanks for taking a look. That’s a good point, if those are invalid characters it probably isn’t a very high priority. I created https://github.com/clojure-emacs/cider/issues/1971

bfay15:03:42

But that isn’t happening in lein repl or using swank