Rust Analyzer + Copilot results in a warning: different client offset_encodings detected for buffer ... #24118
Unanswered
laureanray
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm constantly getting this warning
warning: multiple different client offset_encodings detected for buffer, this is not supported yet
I did a little investigation and it seems that some folks already experienced this with
clangd
+ other client attached to the buffer.Basing on this discussion, neovim/nvim-lspconfig#2184 (comment) it does seem like this is happening when you have multiple clients attached to the buffer with different
offset_encoding
. In my case it's the rust-analyzer which uses UTF-8 and Copilot uses UTF-16.I assumed that this can be resolved by updating the
capabilities.offsetEncoding
in my LSP configuration. I tried doing so and have set it to the following values:This just results
rust-analyzer
to quit. With the following log:Any ideas?
My last resort is to just inhibit the warning, but I haven't find any resources in doing so.
Any help with be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions