Fork me on GitHub
#cider
<
2023-06-08
>
rolt12:06:49

hello, I'm having an issue in a cljs cider-repl buffer (I haven't encountered it in a clj repl): after a while, smartparens functions stop working properly: sp-kill-word will kill the word fine, but also move my cursor to the beginning of the line (before the *ns*> "prompt") and the message "Text is read only" will show up below. I have to run cider-repl-clear-buffer and then everything works fine again (until the problem re-appears). I'm using smartparens-strict-mode in cider-repl buffers I'm using doom emacs, I can't remember if I had it when I was using regular emacs I feel like it's more of a smartparens issue than a cider issue (when buffer gets too large ?), has anyone encountered this issue ?

practicalli-johnny12:06:24

Using the cider repl buffer is not going to be as effecitve as using the source code buffers, especially if logs, long lines or lots of content is pushed to the repl buffer. Perhaps there is a size limit set on the repl buffer, usually via the Cider variable, e.g. cider-repl-buffer-size-limit 100

practicalli-johnny12:06:47

Also suggest setting cider-repl-display-help-banner nil to reduce the size of the repl buffer, to avoid slowdown

rolt12:06:06

thanks i'll try to set cider-repl-buffer-size-limit and see if it works

practicalli-johnny12:06:46

Note that I do not use the REPL buffer, so 100 is a very low number. I think the default is something like 1000

rolt12:06:56

It was nil for me, only history size limit was set