This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-28
Channels
- # announcements (1)
- # beginners (128)
- # calva (15)
- # cider (1)
- # clerk (4)
- # clj-kondo (10)
- # clojure-berlin (5)
- # clojure-denmark (2)
- # clojure-europe (59)
- # clojure-nl (2)
- # clojure-norway (83)
- # clojure-sweden (3)
- # clojure-uk (4)
- # cursive (11)
- # datomic (8)
- # emacs (13)
- # events (1)
- # hyperfiddle (3)
- # juxt (2)
- # malli (13)
- # nrepl (10)
- # off-topic (46)
- # releases (2)
- # reveal (1)
- # rewrite-clj (6)
- # sci (6)
- # scittle (17)
- # shadow-cljs (2)
- # xtdb (2)
- # yamlscript (8)
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?
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.
Interesting, thanks for the repro case, I’m actually working on that area right now so I’ll look at that.
Thank you!
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.
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.
@U0567Q30W happened to notice that the line wrap button is missing a tooltip: