Fork me on GitHub
#emacs
<
2021-04-19
>
bartuka10:04:25

how can I fix this display issue in *cider-error* buffer?

Unhandled clojure.lang.ExceptionInfo
   [38;5;32m-- [0m[38;5;45mRouter creation failed
   [0m[38;5;32m----------------------------------
   [0m[38;5;45mNO_SOURCE_FILE:6[0m [38;5;32m--[0m
   
   [38;5;253mRouter contains conflicting route paths:[0m
I think ansi colors are not properly parsed

bartuka10:04:48

there is a way to fix it or at least ignore ansi and consider only text?

ericdallo14:04:55

I'm having the same issue with matcher combinators here: https://github.com/clojure-emacs/cider/issues/2901

bartuka14:04:28

oh 😕

bartuka14:04:43

better to move this to #cider channel

grazfather14:04:40

it’s exactly that it’s not doing anything with ansi escape codes. does your error handler add colours? I don’t know how to hide them in emacs, but your exception handler could/should not use colour unless it detects its output writer is a TTY

bozhidar18:04:02

yeah, those make sense in a terminal setting, but I'd never include them in something that's meant to be used programmatically.

bartuka22:04:22

I can't remember if reitit was raising errors like this before. Will investigate their exception handler

bartuka22:04:57

and my cider-print-fn is using 'pprintas default