Fork me on GitHub
#conjure
<
2020-12-09
>
mozinator214:12:13

Is it possible to automatically pretty print the output of an conjure evaluation ?

Olical14:12:32

All output is already run through clojure.pprint as it's displayed. This won't kick in until the input is past a certain size though I think.

mozinator214:12:28

Also when using babashka ? Maybe that's my problem

Olical14:12:45

Ah no, babashka doesn't support the arguments I provide at the moment

Olical14:12:58

The nREPL implementation doesn't listen to the formatting key I send

Olical14:12:06

This will require some other solution but I'm not sure what right now. Might be worth opening an issue on the repo so it gets some visibility and discussion :thinking_face: not sure if bb has any support for formatting output in it's nREPL support? If not it'll be a bit tricky to get it right for all cases, ideally bb would provide a key I can send in eval messages that would format the output.

👍 3
Olical14:12:15

So maybe this'll require a babashka pr then a Conjure change

mozinator214:12:36

Maybe it's also totally something that I am doing wrong. Maybe not having the right middlewares for nrepl active.

nate14:12:00

Hm, bb recently got real pprint (was using fipp or something else before), so it's likely this is possible.

mozinator214:12:48

At the moment I am doing this but it's not optimal

(clojure.pprint/pprint data (io/writer "data.edn"))

mozinator214:12:53

Another question I have. And probably also has been answered a lot of times. How can I make the size of the evaluation popup bigger ?

Olical14:12:03

That'll be the hud#width and hud#height options :helpgrep conjure#log#hud#width

mozinator214:12:04

great! thanks!

mozinator214:12:56

So far I have been very happy developing Clojure/Babashka using Vim + Conjure, thanks @olical ! And I really love :ConjureSchool

👍 3
❤️ 3