This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-19
Channels
- # announcements (24)
- # asami (25)
- # babashka (17)
- # beginners (99)
- # bitcoin (1)
- # calva (2)
- # cider (6)
- # cljs-dev (4)
- # clojure (88)
- # clojure-australia (3)
- # clojure-europe (23)
- # clojure-france (6)
- # clojure-nl (5)
- # clojure-uk (31)
- # clojured (1)
- # clojurescript (6)
- # clojureverse-ops (1)
- # datomic (28)
- # depstar (18)
- # emacs (11)
- # events (1)
- # fulcro (21)
- # graalvm (4)
- # graphql (7)
- # heroku (1)
- # jackdaw (18)
- # joker (3)
- # kaocha (1)
- # lsp (1)
- # malli (13)
- # meander (4)
- # off-topic (12)
- # pathom (14)
- # pedestal (2)
- # podcasts-discuss (1)
- # re-frame (37)
- # reagent (17)
- # reitit (9)
- # shadow-cljs (44)
- # xtdb (17)
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 parsedI'm having the same issue with matcher combinators here: https://github.com/clojure-emacs/cider/issues/2901
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
yeah, those make sense in a terminal setting, but I'd never include them in something that's meant to be used programmatically.
I can't remember if reitit was raising errors like this before. Will investigate their exception handler
looking at the code seems like this is the printing function https://github.com/metosin/reitit/blob/1ab075bd353966636f154ac36ae9b7990efeb008/modules/reitit-core/src/reitit/exception.cljc#L28 and nothing weird pops out
found it, https://github.com/metosin/reitit/blob/1ab075bd353966636f154ac36ae9b7990efeb008/modules/reitit-dev/src/reitit/dev/pretty.cljc#L270 reitit pretty/exception namespace