-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Emacs hangs when clojure-toplevel-inside-comment-form
is t
, and comment
is used as a var
#639
Comments
clojure-toplevel-inside-comment-form
is t
, and comment
is used as a var
It would be interesting to see if this can be reproduced in our CI; that is to discard the possibility that this issue cannot be reproduced without the other libs also seen in the stacktrace (related to markdown and lsp). Should be easy enough. |
Tried to reproduce on my machine (Prelude), but did not notice any hanging |
I experience what seems to be very similar issue with a I navigate the cursor to the opening paren, Some editing within the
Shutting down the LSP server resolves the issue. I have experience the issue on both Spacemacs and Doom Emacs setups |
Yes same experience here and found this related issue #586. |
I have set If I understand the slack discussion correctly, LSP is asking clojure-mode to font-lock doc-strings and causing a process to eat up the cpu.
Obviously if the LSP hover functionality is desirable, then this is not a valid approach. |
Expected behavior
I can edit code with
comment
shadowed from clojure.core without the editor hanging. (Whether or not I should do this in the first place is a lesson I should probably learn but the editor shouldn't hang in any case)Actual behavior
When
clojure-toplevel-inside-comment-form
ist
andcomment
is used in a buffer as a clojure var, emacs hangs indefinitely untilC-g
ed.See discussion here: https://clojurians.slack.com/archives/C099W16KZ/p1667918713039869
Here is a stacktrace when
C-g
ed:Steps to reproduce the problem
Load up that code, ensure
clojure-toplevel-inside-comment-form
ist
, and then navigate edit inside and round the comment var or in the map.Environment & Version information
clojure-mode version
I'm using doom which uses clojure-mode from git. The git hash of clojure-mode I'm using is 414157c3e523e80cc44dca8f86f1853122ee5f6b
Emacs version
GNU Emacs 28.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-07-15 [2 times]
Operating system
Fedora Silverblue 36
The text was updated successfully, but these errors were encountered: