Fork me on GitHub
#cursive
<
2024-06-28
>
Ben Grabow15:06:48

I strongly suspect this has been asked before but my search skills are coming up empty. When Cursive prints a REPL result, if the result contains reader tags a couple printing features appear broken: • No syntax highlighting • No pretty print line wrapping/indentation Is there a fix/workaround for this? In my searching I found that Cursive uses Fipp for printing, and does some work to incrementally read the output as a data structure before printing it. Is there some way to provide some sensible default parse logic for tagged reader literals to handle these cases?

Ben Grabow15:06:58

In the screenshot, first example shows syntax highlighting and line wrapping for a form that won't fit horizontally on one line of the output window. Second example has no highlighting and does not line wrap.

cfleming21:06:55

Interesting, thanks for the repro case, I’m actually working on that area right now so I’ll look at that.

cfleming05:07:09

I just tried this, and it works for me. However, my function objects look different - do you have something installed which changes how functions are printed? The problem looks like it might be that it’s creating functions using invalid symbols.

p-himik17:06:03

Is there a way to prevent REPL from constantly word-wrapping? Something prints out a long line, I click the button to disable wrapping, another long line is printed - the wrapping gets enabled by itself.

p-himik17:06:05

And of course after I've complained it started working without any issues...

cfleming21:06:21

Yes, that’s very weird, I’ve never seen anything like that.

Anders Corlin20:07:17

@U0567Q30W happened to notice that the line wrap button is missing a tooltip:

cfleming20:07:40

Hmm, strange, I’ll fix that, thanks.

🙌 1
cfleming20:07:27

Fixed, thanks for the report!

👍 1