User forums > Help
Code completion issues : Nightly build 13231
draughlin:
Hi!
I have followed the wiki to get this far. However in Settings/Editor but there is no Clangd_client anywhere in the scrolling section on the left of the window.
draughlin:
Ok,
Managed to get further. What the Wiki does not say is that you have to set your default compiler to be LLVM/Clang. Once you do this, you will find the Clangd_client under settings/editor. I am using LLVM/Clang 16.0
I have configured the clangd_client to use the correct clangd.exe executable but now it continually complains about not being able to find a clangd installation, even though I have manually browsed to the clangd.exe and selected it. Please see attached image of error. Do I need to use an older version of LLVM/Clang perhaps?
stahta01:
https://wiki.codeblocks.org/index.php/CB_Clangd_Client
Link to directions; I have not used these directions or this plugin so can not help.
Tim S.
draughlin:
Thanks Tim,
Those are indeed the instructions that I have been following.
One problem seems to be launching codeblocks from cblauncher. If you do this then when you enable the clangd_client it does not stay enabled.
Second problem the clangd_client plugin seems to be incompatible with LLVM/Clang 16. It continually complains with the above error (see attachment.) It works fine with LLVM/Clang 13.0.1. I will test it with later versions if I have time.
draughlin:
Ok, Here is what I have found.
(1) Dont use the cblauncher.exe to launch codeblocks - if you do then you will not be able to permanently ENABLE the Clangd_client.
(1A) Sometimes you might need to delete your codeblocks settings in %APPDATA%\roaming to get it to ENABLE.
(1B) If you are using cblauncher.exe you will need to delete your local AppData directory to get it to ENABLE.
(2) The Clangd_client is incompatible with LLVM/Clang 16. It works fine with LLVM/Clang versions 13.0.1 to 15.0.7
(3) The Clangd_client does not autocomplete header file names (e.g. <algorithm> )
Hope this will help some poor sucker in the future.
Thanks for the help,
Greg.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version