-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Eval UX improvements #3148
Eval UX improvements #3148
Conversation
When the error buffer is disabled, there is no other indication that an error occured
6ad52fb
to
cf72cab
Compare
The commits look reasonable to me! As for the screenshots, have you tried having a variety of exceptions thrown, and seeing how they are rendered? Some things I would expect for a smooth UX would be:
It's not a blocker but I'd certainly appreciate that experimentation. If something was needed from cider-nrepl side I could try providing it (maybe as a new k-v entry: |
I love the proposed changes and I don't think that any of them are controversial, so let's just merge this and polish it as we go based on whatever user feedback we receive. Thanks for tackling this! 🙇♂️ |
deleted by mistake, oops
deleted by mistake, oops
deleted by mistake, oops
This is the first of a bunch of tweaks on my local copy of Cider that I've been using for almost 2 years now and never got around to submitting. I hope it's alright if I group several related changes together in a single PR, much of the friction comes from having to rebase commits and write multiple changelogs.
Overlay text takes on the face of the following text - this is especially noticeable with coloured parens and


cider-result-overlay-position
set to'at-point'
.Before (using cider-eval-last-sexp, the text takes on the yellow of the closing paren next to it):
After:
When an error occurs and
cider-show-error-buffer
is set to nil, an overlay is created with an error indicating face. Currently there is no indication at all of the type or presence of error.I've been using this setting for some time now and find it much more responsive and less distracting than a stacktrace buffer popping up and needing to be dismissed. Most of the time a simple error message is enough information, and one can use
cider-selector
to bring up the stacktrace buffer if needed.cider-eval-to-comment
commands, it helps (especially for teaching purposes) to have the error output to the comment:I don't think tests or user manual updates are needed here?
Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):
eldev test
)eldev lint
) which is based onelisp-lint
and includescheckdoc
, check-declare, packaging metadata, indentation, and trailing whitespace checks.Thanks!
If you're just starting out to hack on CIDER you might find this section of its
manual extremely useful.