thx for the reply.
yes, I use the LLVM win64.exe one.
I'm not sure what compiler toolchain you mentioned means, but if it's compiler used in cb, it's gnu gcc compiler.
hello, first time here.
I followed the wiki page to enable the Clangd plugin, but the code completion is not working.
Is there something I am missing?
I'm using build 13539 on windows.
thx for the reply.
yes, I use the LLVM win64.exe one.
I'm not sure what compiler toolchain you mentioned means, but if it's compiler used in cb, it's gnu gcc compiler.
clangd --version
gcc --version
Run these commands:Codeclangd --version
Codeto get the versions.gcc --version
Run these commands:Codeclangd --version
Codeto get the versions.gcc --version
thx for the reply.
the clangd version is 18.1.8
as for the gcc version, I don't know why the terminal says it can't identify "gcc". If I don't have it, how did I compile in cb?
GCC used by C::B is located in settings (see screenshot), did you install GCC seperately or did you install C::B bundled with it?
GCC used by C::B is located in settings (see screenshot), did you install GCC seperately or did you install C::B bundled with it?
thx for the reply.
I install cb with the compiler.
gcc --version
Go to C:\Program Files\CodeBlocks\MinGW\bin and run:Codegcc --version
I think your problem might be the same as in https://forums.codeblocks.org/index.php/topic,24357.msg169412.html#msg169412
I think your problem might be the same as in https://forums.codeblocks.org/index.php/topic,24357.msg169412.html#msg169412
thx for the reply.
so my clangd.exe is in "C:\Program Files\LLVM\bin\clangd.exe"
is that the problem? how do I fix it, like how do i get the file in the right path?
I think your problem might be the same as in https://forums.codeblocks.org/index.php/topic,24357.msg169412.html#msg169412
thx for the reply.
so my clangd.exe is in "C:\Program Files\LLVM\bin\clangd.exe"
is that the problem? how do I fix it, like how do i get the file in the right path?
What have you got set at MainMenu/settings/Editor/Clangd_client/C/C++ parser (tab) as the path to clangd.exe ?
AFAIK you need to use MSYS2 and install GCC and Clang together in the same environment and use "mingw-w64-clang-x86_64-clang-tools-extra" for it to work properly.
so my clangd.exe is in "C:\Program Files\LLVM\bin\clangd.exe"
thx for the reply.
it's "C:\Program Files\LLVM\bin\clangd.exe".
that is a method listed on the wiki. And so is the LLVM one. They are both supposed to work right...?
so my clangd.exe is in "C:\Program Files\LLVM\bin\clangd.exe"
thx for the reply.
it's "C:\Program Files\LLVM\bin\clangd.exe".
that is a method listed on the wiki. And so is the LLVM one. They are both supposed to work right...?
I'm going to guess the problem is caused by the space in "Program Files".
Clangd is essentially a Linux program which cannot handle spaces in file names.
We now need to determine if that is actually the problem.
First: Tell us how you start CodeBlocks so that we can then tell you how to turn the clangd_client logs on.
Then we can read the log to see what Clangd_client thinks the problem is.
Thanks for your patients.
I'm going to guess the problem is caused by the space in "Program Files".
Clangd is essentially a Linux program which cannot handle spaces in file names.
We now need to determine if that is actually the problem.
First: Tell us how you start CodeBlocks so that we can then tell you how to turn the clangd_client logs on.
Then we can read the log to see what Clangd_client thinks the problem is.
Thanks for your patients.
thx for the reply.
So I unzip the 3 .7z file (CB_20240807_rev13539_win64, wxmsw32u_gcc_cb_wx325_2D_gcc1410-mingw64, Mingw64dlls14.1.0)
into the same folder and start codeblocks.exe in it.
So I guess you start Codeblocks by just typing "Codeblocks" or "Codeblocks.exe".
Good, so from now on type "codeblocks /d" to turn on the codeblocks debugger tab at the bottom.
Then go to Settings/Editor/clangd_client/ C/C++ parser(adv.)
Enable check boxes entitled "Enable plugin info logging" and "Enable plugin Debug logging".
Close CodeBlocks and restart it with the /d parameter to turn on those logs.
Load a project you'd normally load for editing.
Wait until the "Code::Blocks Debug" tab at the bottom stops scrolling information.
...
GetLSPclient: param pProject is missing
I forgot to say that clangd does work fine when I load a project, meaning the code completion works fine, while also has the issue user "wtfisgoingoff" mentioned.
hello, first time here.
I followed the wiki page to enable the Clangd plugin, but the code completion is not working.
Is there something I am missing?
I'm using build 13539 on windows.
He said in the beginning that Clangd_client didn't work, now he says it worked fine all along.