Skip to content
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

Interactive evaluation: show a shorter overlay when rendering compilation errors #3493

Merged
merged 2 commits into from Oct 1, 2023

Conversation

vemv
Copy link
Member

@vemv vemv commented Sep 30, 2023

e.g., the Syntax error compiling clojure.core/let at (foo/bar.clj:10:1) prefix is now removed.

Samples:

image Screen Shot 2023-09-30 at 15 44 01

Cheers - V

…tion errors

e.g., the `Syntax error compiling clojure.core/let at (foo/bar.clj:10:1)` prefix is now removed.
@vemv vemv requested a review from bbatsov September 30, 2023 14:19
@@ -822,9 +822,15 @@ when `cider-auto-inspect-after-eval' is non-nil."
(and cider-show-error-buffer
(member phase cider-clojure-compilation-error-phases)))
;; Display errors as temporary overlays
(let ((cider-result-use-clojure-font-lock nil))
(let ((cider-result-use-clojure-font-lock nil)
(trimmed-err (thread-last err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to add a comment explaining what this removes exactly, as it wasn't clear to me without reading the issue description. Potentially this can also be a small function with a unit test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cider-clojure-compilation-regexp happens to have nice tests, however I'll add a docstring to it

@vemv vemv merged commit f508aa1 into master Oct 1, 2023
32 of 33 checks passed
@vemv vemv deleted the shorter-interactive-err branch October 1, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants