fulcro 2025-03-01

Not sure if this is a bug or user-error. But the exceptions that guardrails throw with ANSI color sequences do not render well in CIDER nor Portal (screenshots in thread)

Notably the value that is tapped (when :tap>? is true in the guardrails config) renders just fine in Portal because the colors are stripped:

I prefer using GR with :throw? because it gets my attention. But I never look at stdout/stderr for my REPl process, I only look at Portal or the exception/inspect buffers CIDER throws up at me.

Well, that does indeed look like warmed up dog poop. Off the top of my head I don't remember colorizing anything, but we do manipulate the exceptions to try to make things look nicer, which I think we're using a library for, which in turn would be what is adding the color. Seems like they should just be an option to turn that off

Maybe there could just be an option to always strip colors?

would gladly accept an MR to add a :guardrails/colors? option to the config

Great! I'll work on one and send it Monday/Tuesday.