Fork me on GitHub
#emacs
<
2018-09-03
>
bozhidar06:09:53

That’s a long-standing issue. @gonewest818 was working on a solution to handle long-output in a more intelligent fashion a while ago, but unfortunately his work never made it to master.

bozhidar06:09:22

Basically we need some way to fold huge output in the REPL and be able to expand it in small increments.

soulflyer12:09:39

I have recently set emacs to truncate lines in my repl buffers in the hope that it will stop emacs locking up if I accidentally output something huge. So far it seems to be working. I put this in the config:

(add-hook 'cider-repl-mode-hook (lambda () (setq truncate-lines t)))
and bound toggle-truncate-lines to C-c C-t so I can turn it back on easily.

theeternalpulse21:09:22

I can't seem to eval/autocomplete with the latest cider after doing jack-in

lilactown21:09:42

anything in your messages?

theeternalpulse21:09:18

no, after I connect it freezes for a while

lilactown21:09:34

:thinking_face: what about in your nREPL buffer?

theeternalpulse21:09:48

That shows up fine after it's done

theeternalpulse21:09:57

but as I eval, I don't get errors or anything

lilactown21:09:45

if you run cider-switch-to-repl-buffer does it find the REPL?

theeternalpulse21:09:04

now I'm getting a freezing issue after it connects, wasn't happening before

theeternalpulse21:09:25

it just shows connection established, but I can't actually do anything

lilactown21:09:28

previously I was having issues with latest cider/nREPL and some middlewares

theeternalpulse21:09:31

then when I do C-g I can switch to the buffer but no commands go through

lilactown21:09:00

it’s strange that you don’t see anything aberrant in the messages or nREPL buffer

theeternalpulse21:09:47

I'm going to just see if it freezes for a long time or eventually lets up

theeternalpulse21:09:53

Ok, I did a full update of my packages and my config (spacemacs) and it works now

lilactown21:09:53

gotcha. are you by chance on the develop branch of spacemacs?

theeternalpulse21:09:54

I'm hoping to eventually migrate to a custom emacs config, but of course that's a job in itself lol

lilactown21:09:34

gotcha. it was probably either sayid or clj-refactor that was out of date. they are middleware which are included by default in the develop branch and was causing me similar issues

lilactown21:09:42

yeah for sure hahaha

lilactown21:09:50

I’m happy with spacemacs as my daily driver