portal

Casey 2023-10-09T12:18:44.043669Z

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?

Casey 2023-10-09T12:21:58.352689Z

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)

djblue 2023-10-09T19:19:31.584939Z

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.

Casey 2023-10-10T05:27:36.324109Z

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

pfeodrippe 2023-10-09T02:12:56.871789Z

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

djblue 2023-10-09T19:15:03.062669Z

Very cool, thanks for sharing!

djblue 2023-10-09T19:25:43.492489Z

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?

pfeodrippe 2023-10-09T19:29:35.853779Z

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

👍 1
pfeodrippe 2023-10-09T19:29:42.126079Z

Thanks for asking ☺️