-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Creating a new Clojure file with æ/ø/å in the filename breaks workspace/willRenameFiles
#1813
Comments
Having tried (naively) to reproduce it it clojure-lsp's test suite, it might come down to this:
I'm not sure if this is me missing a step on the way where maybe the "Bad escape" would be fixed, tho. |
magnars
added a commit
to magnars/emacsd-reboot
that referenced
this issue
May 23, 2024
This happens when a file name includes non-ascii chars. clojure-lsp/clojure-lsp#1813
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Saving a new file with characters from a non-US alphabet will throw an "Internal Error", in Emacs preventing the buffer from being marked as saved. The current workaround I have found is to save the file in fundamental-mode. Once it exists, lsp no longer throws.
To Reproduce
Expected behavior
I was hoping to save my file without workarounds. 😅
User details:
OS: Emacs on MacOS
Version:
clojure-lsp 2024.04.22-11.58.08-nightly
clj-kondo 2024.03.13
Additional context
Toggling on debug-on-error in Emacs shows this stack:
Looking at the stack trace, here's what happens:
This works as expected with regular characters, but breaks with æ/ø/å and presumably other non-US alphabet chars.
So, the problem is actually renaming files with strange chars. Due to the way Emacs handles new files, this leaks into saving any new files with strange chars.
The text was updated successfully, but these errors were encountered: