This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-09
Channels
- # announcements (1)
- # aws (4)
- # beginners (55)
- # calva (13)
- # cider (58)
- # clj-kondo (59)
- # cljs-dev (4)
- # clojure (21)
- # clojure-austin (1)
- # clojure-dev (2)
- # clojure-europe (4)
- # clojure-italy (9)
- # clojure-nl (13)
- # clojure-norway (4)
- # clojure-spec (12)
- # clojure-uk (15)
- # clojurescript (22)
- # cursive (11)
- # datomic (3)
- # duct (1)
- # events (1)
- # fulcro (6)
- # graalvm (28)
- # hoplon (9)
- # jobs (2)
- # jobs-discuss (21)
- # mount (14)
- # nrepl (4)
- # off-topic (38)
- # pathom (1)
- # perun (4)
- # re-frame (17)
- # reitit (32)
- # shadow-cljs (44)
- # testing (7)
- # tools-deps (62)
- # vim (10)
I'm wondering - are there any commonly used (Emacs? Cider? REPL in general?) packages that: truncate long strings automatically? (for instance, if I'm looking at repl output of a large json body where some strings go on and on) and also one (setting/package etc.) that would limit stack trace length? To show only maybe 10 or 20 lines deep vs 100+?
cider-print-quota
and cider-print-options
seem like they might be of interest to you
i thought long lines had been automatically curbed but i don't remember offhand righ tnow
There may be others, but perhaps you were thinking of expound? https://github.com/bhb/expound
I am working on proper error handling in my app - but I need to throw them first. Should I throw ex-info
exceptions, or should try to throw some Java exceptions?
It really depends on what your app is doing, what sorts of errors you are wanting to report, etc etc.
If you're checking arguments, it makes sense to throw IllegalArgumentException
in my opinion. But "general" exceptions can be handled well with ex-info
.
The main issue with using ex-info
is that you can only catch
one type of exception, so you then need a bunch of cond
s on ex-data
results if you need to handle different exceptions in different ways.
CSS class on those HTML elements is partial
, and it’s in the “line coverage”, so I’m guessing it’s partially covered lines…