This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-27
Channels
- # bangalore-clj (1)
- # beginners (27)
- # boot (16)
- # cider (14)
- # cljs-dev (94)
- # cljsrn (8)
- # clojure (229)
- # clojure-dev (5)
- # clojure-dusseldorf (6)
- # clojure-italy (8)
- # clojure-norway (8)
- # clojure-russia (22)
- # clojure-sanfrancisco (2)
- # clojure-spec (48)
- # clojure-uk (44)
- # clojurescript (47)
- # core-async (87)
- # cursive (43)
- # datascript (22)
- # datomic (20)
- # defnpodcast (5)
- # emacs (6)
- # hoplon (4)
- # jobs-rus (4)
- # keechma (2)
- # klipse (8)
- # leiningen (2)
- # luminus (2)
- # lumo (14)
- # om (38)
- # onyx (4)
- # overtone (3)
- # pedestal (41)
- # planck (72)
- # powderkeg (42)
- # proton (46)
- # protorepl (9)
- # reagent (9)
- # ring (47)
- # ring-swagger (5)
- # rum (7)
- # sql (22)
- # unrepl (1)
- # untangled (24)
- # vim (19)
- # yada (5)
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
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.
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))}
aha, very helpful, thanks.
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.
That’s one very interesting idea to alleviate the problem https://github.com/clojure-emacs/cider/issues/1934
Cause I am getting something like:
error in process filter: Search failed: “\\(\\s-\\|^\\|#\\|(\\|\\[\\|{\\)\\(\”\\)"
Can confirm. Mind filing an issue to CIDER? https://github.com/clojure-emacs/cider/issues/new
However, keep in mind that 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
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