This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-07
Channels
- # adventofcode (269)
- # beginners (100)
- # boot (6)
- # cider (4)
- # cljsrn (4)
- # clojure (161)
- # clojure-android (31)
- # clojure-argentina (2)
- # clojure-brasil (8)
- # clojure-greece (45)
- # clojure-india (2)
- # clojure-madison (2)
- # clojure-russia (17)
- # clojure-spec (4)
- # clojure-sweden (1)
- # clojure-uk (32)
- # clojurescript (93)
- # core-logic (2)
- # cursive (21)
- # data-science (2)
- # datomic (46)
- # defnpodcast (1)
- # duct (5)
- # emacs (21)
- # events (1)
- # fulcro (17)
- # graphql (13)
- # job (1)
- # jobs (2)
- # leiningen (11)
- # lumo (3)
- # off-topic (119)
- # om (4)
- # onyx (2)
- # planck (6)
- # portkey (12)
- # re-frame (5)
- # reagent (3)
- # ring (5)
- # shadow-cljs (27)
- # spacemacs (19)
- # specter (6)
- # unrepl (9)
my repl in spacemacs is rather slow and laggy, is this a common observation? This particularly happens when the repl has printed some large output. Is there a way to speed this up like turn off autocompletion for the repl?
I find that happens too. Usually I just do cider-repl-clear-buffer
(`SPC m s c`) but that doesn’t really help if you want to keep the output
You can limit the output in the REPL to x many lines (sorry, on a slow network, so havent googled it)
i think both of these are useful suggestions, thanks
assuming you are talking about a clj or cljs repl @michaellindon - if you find something i would love to know about it too 😬
@petr @eggsyntax there is a paste-transient-state
in the develop
branch of Spacemacs that allows you to traverse the kill ring. This was poping up a little menu when ever you pasted, allowing you to navigate through the kill ring with p
and P
@naomarik I do use yasnippets, but then I tend to tab out to the end $0
before doing anything that benefits from smartparens. I have a couple of posts on how I use it, although they don't address this specific issue directly http://jr0cket.co.uk/tags/yasnippets/
@michaellindon there are loads of things that you can try that might speed it up, but the best strategy is usually to start with the emacs profiler. It's surprisingly easy to use, and can often let you quickly narrow down to the thing that's causing the problem. Pretty much all the info you need is on this short page: https://www.gnu.org/software/emacs/manual/html_node/elisp/Profiling.html
Also, I suppose you might get help on #cider @michaellindon.
Thanks for all the suggestions, I'm experimenting a few things this morning
So far, turning off company mode for the repl (clojure) has helped in addition to @shan's suggestion of clearing the buffer with (SPC m s c), things typically slow down when there is a lot of output for me
for example, if you generate 10000 random uniforms and the repl prints them out, entering commands and getting output becomes a lot slower after that
I generated an even larger number and I never got the prompt back to enter the next input. I cleared the buffer, the prompt came back immediately
I found this issue: https://github.com/clojure-emacs/cider/issues/228
@michaellindon quick & dirty way to catch whatever it is when that happens:
M-x toggle-debug-on-quit
Then repro the issue so you don't have the prompt, hit C-g
to interrupt, and boom, you'll get the call stack for what's happening at the point you interrupt.
https://emacs.stackexchange.com/a/4024
Awesome, thanks :)