-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Panic on textDocument/didChange containing a multi-byte unicode character #9121
Comments
Can you try in VS Code? CC emacs-lsp/lsp-mode#2080 |
I'm sorry, but I don't have VS Code installed, and I don't have a lot of time to help diagnose this issue. As far as I can tell from the conversation starting at emacs-lsp/lsp-mode#2080 (comment) , it's VS Code that's non-standard here. And there's an open issue for the fix. There might also be a missing UTF-8 extension in either my emacs-lsp or rust-analyzer. But I don't know enough about LSP internals to know if I need a code fix, version upgrade, or config change. (And on which side that's needed.) |
VS Code isn't non-standard. LSP was defined by the VS Code implementers, and uses UTF-16 because that's what JavaScript likes. I guess In the meanwhile, the UTF-16 implementation in |
I guess I was confused because the missing I'll wait for emacs-lsp/lsp-mode#2080 , feel free to close this ticket if there's nothing that can be done here. |
Let's close this since we can't do anything about it. |
Description
rust-analyzer
panics when a unicode character is in a comment.Steps to Reproduce
rust-analyzer
withemacs
using the LSP protocolrust-analyzer
Sometimes the panic occurs on the paste, sometimes it needs an insertion point change or another edit.
Backtrace
I tried running
export RUST_BACKTRACE=full; emacs ...
but the env var didn't seem to get to rust-analyzer.The text was updated successfully, but these errors were encountered: