-
-
Notifications
You must be signed in to change notification settings - Fork 647
[stacktrace] Visual improvements, expand causes by 1 by default #3790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LGTM 👍 |
One general remark is that we still need a better way to fit the exception data (from |
24e31ae
to
e633401
Compare
Yeah, more or less. Originally I was also thinking about 2 other things:
The main reason those are displayed as they are currently is that it was the easiest thing to do to accommodate them, but I always wondering what would be the optimal UI/UX for them.
I'm guessing in the context of stacktraces it makes sense to always pretty-print those, but I'm open to counter-arguments.
Indeed. Even I forget about this from time to time now that I'm not doing as much Clojure as back in the day. |
I think showing the data is useful. It's not only used for tooling to process (like the compilation errors) – e.g. I sometimes use the data map to attach some useful data to the exception in addition to writing it into the message. I agree that the size of that data can be large. This is not a problem by default because by default Here's what we can do:
|
e633401
to
6d24e5e
Compare
I'm OK with your proposals. |
Great, I'll proceed with that in subsequent PRs. |
This is a much smaller fish to fry while we are working on #3789.
Two things here:
Before
Example code:
(throw (RuntimeException. "shrug" (ex-info "Foo" {:a 1} (ex-info "bar" {:a 2}))))
After