MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.72k stars 254 forks source link

warning: multiple different client offset_encodings detected for buffer #951

Closed 66RING closed 9 months ago

66RING commented 10 months ago

Maybe we need the ability to modify the offsetEncode in ccls as clangd did.like:

image

which is hard code in ccls.

image

document from neovim lsp file:

image

Observed behavior

I got "warning: multiple different client offset_encodings detected for buffer" when use the copilot plugin and ccls.

image

the offsetEncoding of ccls and copilot is conflict .

Expected behavior

Decode as user parameter specify.

Steps to reproduce

  1. enable ccls as lsp
  2. install copilot.vim plugin
MaskRay commented 9 months ago

UTF-16 is a perennial pain point from LSP :( I think copilot should probably support UTF-32.