-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Red squiggly in source buffer is gone with Clojure 1.10 #2614
Comments
Yeah, you're right. That's broken because of the new message format. |
So it seems like (defvar cider-compilation-regexp '("Syntax error compiling at (\\(.*?\\):\\([[:digit:]]+\\):\\([[:digit:]]+\\))"
1 2 3)) works (at least for me (on my computer)). This does, however pose the question of backwards compatibility. If we simply change This leaves us with (at least) three options
I feel that my emacs-lisp-fu leaves me at 1), and I'd need very clear guidance if you want to go for 2) or 3) |
…rror messages in 1.10
Hmm, seems we dropped the ball on the original issue #2443 I'll put it here for posterity as I shared some thoughts about solving the problem there. |
…rror messages in 1.10 - Rewrite regex to use rx - Add tests
…rror messages in 1.10 - Rewrite regex to use rx - Add tests
…rror messages in 1.10 - Rewrite regex to use rx - Add tests
Expected behavior
Whenever I do
C-c C-c
with a form that has an error, I get a red squiggly in my source buffer indicating where the error is.Actual behavior
I’m not getting the red squiggly, but I get a rather friendly message in the
*cider-repl..*
buffer telling me that I have an error somewhere in my source fileSteps to reproduce the problem
Create a project with Clojure 1.10, jack-in, create a form with an error in it, evaluate it with
C-c C-c
. You will not have a red squiggly under the form with error, but you will get a message in the*cider-repl ...*
bufferEnvironment & Version information
Any recent version of Cider, Clojure 1.10.
Additional information
The messages I get in the repl are: for 1.10
Wheras for 1.9.0 it’s
So a good starting point would be to look at this regex here:
https://github.com/clojure-emacs/cider/blob/master/cider-eval.el#L300
The text was updated successfully, but these errors were encountered: