Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Code completion using LSP and clangd
Pecan:
--- Quote from: BlueHazzard on January 13, 2022, 06:10:45 pm ---What is the encoding of your source file?
--- End quote ---
The data sent to clangd comes directly from the editors' wxTextctrl.
The encoding in the status bar for my CB shows windows-1252.
This problem only occurs on the incoming textDocument/completion response.
The data going out never gets a json exception. Only the data coming in.
How can I determine what the encoding is for the outgoing data?
Pecan:
For the time being, I've coded a hack for the illegal utf8 problem.
It clears the illegal utf8 char and continues with the code completion.
The completion suggestions are correct so I'm ok with it.
I'll figure it out some other time.
ollydbg:
I see your latest commit here in rev 27
* clangd_client - Code to remove invalid utf8 chars from clangd responses; cf., client.cpp/h DoValidateUTF8data()
I will test it, thanks!
EDIT updated:
The illegal utf8 problem still exits in rev 27. :(
Pecan:
--- Quote from: ollydbg on January 15, 2022, 04:08:33 am ---I see your latest commit here in rev 27
* clangd_client - Code to remove invalid utf8 chars from clangd responses; cf., client.cpp/h DoValidateUTF8data()
I will test it, thanks!
EDIT updated:
The illegal utf8 problem still exits in rev 27. :(
--- End quote ---
Can you give me some guidance as to how you created the problem. I can't make it happen here.
What source are you using that got a utf8 invalid char?
What symbol were you trying to code complete.
What indication are you getting that there was an invalid utf8 char. A wxMessageBox or an error shown in the cb debug log?
If a message was in the CB debug log, what did it say?
Did you use the repo source or the download file ?
In plugin management, what is the version you see for clangd_client?
I don't think the download files have been updated yet.
Thanks for testing.
AndrewCot:
The plugin download does not have the fix in it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version