I'm not sure if I just noticed this or if something changed recently, but I see my repl output twice for each evaled form: Why does this happen.. and how can I make it only show once to reduce scrolling in the window?
FWIW I use this middleware [refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware,portal.nrepl/wrap-portal]
and this in my user.clj
(inspect/open {:theme :portal.colors/gruvbox})
(add-tap portal.api/submit)The https://github.com/djblue/portal/blob/master/src/portal/nrepl.clj#L89 middleware will only tap> the value once. You may have another tap handler registered elsewhere.
Note how the rendering is different for each one. The first is wrapped in metadata and had a line number. The second is just the value evaled
Why a game editor when you have Portal and Clerk already lol (using Portal in this case as the de facto edit mode visualizer) https://clojurians.slack.com/archives/C066UV2MV/p1696817214900019
Very cool, thanks for sharing!
BTW I was gonna add some metadata for the pprint viewer around print-length and print-level. Is this something you feel like you've been missing?
Yeah, it would be good to have some of it, but not a priority as we can mix and match viewers… and create one ourselves pretty easily. But it hasn’t been an issue so far
Thanks for asking ☺️