-
-
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
Three related patches on error handling. #690
Conversation
Fixes (scan-error "Unbalanced parentheses") when the compiled file is simlinked.
This wasn't a regression, but a result of the discussion in #572. |
Well. I don't mind if it's printed in repl or not, but it should be printed in the echo area as well. I expect output in the minibuffer, error it is or not. It's especially inconsistent and confusing when stacktrace is not automatically popped. I can check for the value of the |
I have rewrote the api and addressed the error message issue as discussed. |
(cider-highlight-compilation-errors buffer err) | ||
(cider-jump-to-error-maybe buffer err) | ||
(unless (cider--show-error-buffer-p buffer) | ||
(message "%s" err))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that you think of this as the exception message, but it's actually ANY error output. The current concept is that people can use the output-destination defcustom to customize this, which is preferable to sprinkling message
calls everywhere. I'd suggest taking this out of that PR so we can discuss it separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I have dropped that part. I don't mind how it is implemented as long as I see the message;)
Overall the code looks good now. I just have a few minor stylistic remarks. You'll do well to use |
Ok. I have corrected the doc issues. Didn't know about There are quite some other pre-existing issues that checkdoc complains about. Not all of them are real errors, but it makes the checks harder. |
Three related patches on error handling.
👍 |
Three patches:
cider-show-error-buffer
is nil. This particular behavior was there a month ago. I assume it's a regression that I don't see it anymore in the HEAD.