This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-24
Channels
- # aws (2)
- # babashka (27)
- # beginners (97)
- # calva (1)
- # cherry (12)
- # cider (6)
- # clara (12)
- # clj-kondo (24)
- # clj-on-windows (4)
- # cljfx (14)
- # clojure (54)
- # clojure-australia (3)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-norway (4)
- # clojure-uk (9)
- # clojurescript (65)
- # conjure (5)
- # cursive (7)
- # datomic (18)
- # emacs (6)
- # helix (2)
- # honeysql (1)
- # jobs (1)
- # joyride (15)
- # kaocha (2)
- # lsp (10)
- # malli (5)
- # nbb (12)
- # observability (5)
- # off-topic (5)
- # reitit (2)
- # releases (4)
- # ring (1)
- # sci (17)
- # shadow-cljs (34)
- # testing (29)
- # tools-deps (45)
- # vim (7)
- # xtdb (6)
@U0510KXTU I used zprint
which was pretty good for my needs.
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message: Could not resolve symbol: Thread$UncaughtExceptionHandler
Data: {:type :sci/error, :line nil, :column nil, :file "io/aviso/repl.clj", :phase "analysis"}
Location: io/aviso/repl.clj:34:3
Phase: analysis
----- Context ------------------------------------------------------------------
30: (defn uncaught-exception-handler
31: "Returns a reified UncaughtExceptionHandler that prints the formatted exception to `*err*`."
32: {:added "0.1.18"}
33: []
34: (reify Thread$UncaughtExceptionHandler
^--- Could not resolve symbol: Thread$UncaughtExceptionHandler
35: (uncaughtException [_ _ t]
36: (binding [*out* *err*]
37: (printf "Uncaught exception in thread %s:%n%s%n"
38: (-> (Thread/currentThread) .getName)
39: (e/format-exception t))
----- Stack trace --------------------------------------------------------------
clojure.core/reify* - <built-in>
io.aviso.repl/reify - io/aviso/repl.clj:34:3
io.aviso.repl - io/aviso/repl.clj:34:3
clojure.core/reify - <built-in>
io.aviso.repl - io/aviso/repl.clj:34:3
io.aviso.repl - io/aviso/repl.clj:30:1
tasks - /Users/steve/Documents/oss/salesforce-babashka/src/tasks.clj:2:3
tasks-tests - /Users/steve/Documents/oss/salesforce-babashka/test/tasks_tests.clj:2:3
user-ee0b5681-7624-4ad5-8672-e3926af017f3 - <expr>:4:47
@U03B2SRNYTY does zprint include coloring?
answering my own question: yes it does https://github.com/kkinnear/zprint/blob/main/doc/options/colors.md
Tip, you won't see some syntax like "..." if you use a light scheme on a black terminal etc.
thanks. working well in initial tests. I’ll try to tweak the theme to see a bit less red
@U0510KXTU The https://github.com/AvisoNovate/pretty/blob/master/src/io/aviso/ansi.clj namespace works in bb
there is also this one which works with bb https://github.com/trhura/clojure-term-colors (via https://babashka.org/toolbox/)
Nice name 😉
Small tip, with the recent babashka, it's possible to pass an -Sdeps
flag to merge in extra settings like :mvn/local-repo
:
$ bb -Sdeps '{:mvn/local-repo "mvn2" :deps {medley/medley {:mvn/version "1.4.0"}}}'
$ ls mvn2
medley org