-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
No comment syntax is defined #2903
Comments
I've followed those steps to reproduce the problem, and in my case (emacs 27, all cider related projects updated from git, using an emacs launched from eldev) it does'n appear the "No comment syntax defined" error, but there is an exception now:
As far as I can tell, the NPE is caused because there should be a print-fn function that is nil. Said function should have been retrieved from the ::print/print-fn key from the message in error_handling.clj:54, but the msg map doesn't carry it. Maybe the nrepl.middleware.print isn't being executed? I'd need some more info to investigate further. |
Fix available in CIDER 1.8.3 + clojure-mode 5.18.0 (both are necessary) |
This issue reports a problem which was discussed in the clojurians forum.
I often get the following confusing message when debugging clojure macros in cider.
The basic problem is that when I'm debugging a clojure macro, the code within
defmacro
might very well throw an exception. Sometimes emacs ends up in a state where it is asking me for a comment character. I doubt this is information the user should be being asked.To reproduce this, I've prepared a more-than-minimum working example.
You can download the repo,
You'll find a
project.clj
file in the top level directory.Start up cider.
In the REPL paste the following but don't press ENTER>
With the cursor at the end of the expression, press
C-c C-m
, to open a new buffer cider-macroexpansion containing the following:(let [...] (rte-case ...))
Navigate the cursor to the close paren of
(rte-case ...)
, i.e. between the final and penultimate parens as shown here:Now press
m
You should now find yourself in the state where emacs is asking for a comment character
Environment & Version information
CIDER version information
Emacs version
Operating system
The text was updated successfully, but these errors were encountered: