Fork me on GitHub
#conjure
<
2023-09-25
>
frankitox22:09:24

I think I'm getting vim hanged because of printing too much to the hud, is there any way to limit its size?

nate02:09:01

Perhaps setting g:conjure#client#clojure#nrepl#eval#print_options#length to something lower than the default of 500 so that longer sequences are truncated faster?

nate02:09:42

When I am dealing with something that's potentially big, I usually toss a (take 10 ...) around it first

nate02:09:01

or a (keys (first big-coll)) to see what is in there

frankitox13:09:42

It's because I'm using the hud more like a log file. Making a migration of say a million entries and using println for each one

Braden Shepherdson13:09:18

tweak the prints to append to a file instead?

frankitox13:09:02

I think there's a function to clean the hud somewhere, at least I could try to run it when I see vim is about to hang

frankitox13:09:07

Yeah, that could work, but I like the convenience of the editor

Martynas Maciulevičius16:09:21

Is there something like "interrupt current rendering operation" in nvim? Maybe it could still produce the value (mostly this is not a problem) but wouldn't print it. Emacs has C-g C-g or something that allows to interrupt the current operation. It doesn't work all the time but it worked for me in the past. Conjure has "interrupt the REPL operation" but I think that it doesn't work when the value is already put to the printer mechanism. Basically -- vim doesn't hang because the data is too large. It hangs because the rendering takes a lot of work (the data is too large for rendering).