This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-24
Channels
- # announcements (1)
- # aws (2)
- # beginners (147)
- # boot (19)
- # cider (57)
- # clara (52)
- # cljdoc (18)
- # cljs-dev (14)
- # cljsrn (4)
- # clojure (176)
- # clojure-conj (9)
- # clojure-dev (9)
- # clojure-germany (2)
- # clojure-italy (4)
- # clojure-spec (13)
- # clojure-uk (56)
- # clojurescript (72)
- # code-reviews (11)
- # cursive (17)
- # data-science (1)
- # datomic (52)
- # duct (26)
- # emacs (6)
- # events (9)
- # figwheel (1)
- # figwheel-main (21)
- # fulcro (132)
- # funcool (1)
- # graphql (3)
- # jobs-discuss (42)
- # leiningen (3)
- # luminus (45)
- # mount (10)
- # off-topic (2)
- # re-frame (17)
- # reagent (12)
- # reitit (20)
- # ring-swagger (7)
- # rum (3)
- # shadow-cljs (256)
- # slack-help (15)
- # sql (7)
- # tools-deps (50)
- # uncomplicate (1)
- # yada (9)
Before I waste too much time digging in the wrong place, we have an app running on Clojure 1.10 Beta 4 and when we try to report an exception to the log file (with Timbre, which in turn uses Aviso "pretty"), we get this instead
#error {
:cause "clojure.pprint.proxy$java.io.Writer$IDeref$PrettyFlush$4923d848 cannot be cast to clojure.pprint.PrettyFlush"
:via
[{:type java.lang.ClassCastException
:message "clojure.pprint.proxy$java.io.Writer$IDeref$PrettyFlush$4923d848 cannot be cast to clojure.pprint.PrettyFlush"
:at [clojure.pprint$write$fn__8503 invoke "pprint_base.clj" 233]}]
:trace
[[clojure.pprint$write$fn__8503 invoke "pprint_base.clj" 233]
[clojure.pprint$write invokeStatic "pprint_base.clj" 233]
[io.aviso.exception$format_property_value invokeStatic "exception.clj" 487]
It seems to work just fine in the REPL -- but my debugging is hindered by part of the stacktrace being omitted (the key part: between my code and the actual, failing call into Timbre).
Is any of the clojure.pprint.PrettyFlush
stuff new in the 1.10 branch? (and thus might cause this)
Yeah, just not quite sure which path to start down...
Nothing changed around here that I recall
It almost looks like that’s an exception when printing in aviso
Have you tried without it?
I've tracked it down to only happening in the JAR version of the project -- when run from source, it all works.