Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Contributions to C::B / Re: Code::Blocks' translation
« Last post by Miguel Gimenez on Today at 09:07:48 am »
There is an almost complete translation to russian in Launchpad, only 77 lines are still untranslated. If you have time you can complete the translation or review the current one.
2
Help / Re: clangd code completion
« Last post by juxin5 on Today at 08:23:27 am »
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.
3
Help / Re: clangd code completion
« Last post by juxin5 on Today at 08:18:43 am »

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.
...



thx for the reply.

I think I found where the problem is. A project needed to be loaded for the clangd client to work properly. When only open the .cpp file, it will give the following error:

Code
GetLSPclient: param pProject is missing

attached file is the log when loading single file.

I'm not sure if it's intended behavior but either way it's not convenient for me because sometimes I just want to edit a single file. Also classic code completion would work fine in such scenario.
4
Contributions to C::B / Re: Code::Blocks' translation
« Last post by Michael Agarkov on Yesterday at 07:17:12 pm »
If only I had enough free time I could make a Russian translation for Code::Blocks. Anyone interested?
5
Help / Re: clangd code completion
« Last post by Pecan on Yesterday at 06:11:00 pm »
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.

Right click on the "Code::Blocks Debug" tab at the bottom and choose "Copy contents to clipboard".

Now choose from the main menu, File/New/EmptyFile and say no if asked to add the file to the project.

Select and move the mouse into that empty file and paste into it (ctrl-z key). You should see the log now pasted into that empty editor file.

Save that file to %tmp%/Juxin5ClangdLog.txt, (or any folder that's convenient to you). %tmp% is the same as your C:\Temp  or C:/tmp folder.

Zip it up so that you can attach it to a reply to this message.

Thanks for your patients.
And forgive me if I insult your intelligence.
6
Help / Re: clangd code completion
« Last post by juxin5 on Yesterday at 10:07:46 am »


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.
7
Help / Re: clangd code completion
« Last post by wtfisgoingoff on Yesterday at 09:11:49 am »

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.

Does  clangd code completion  list  those keywords  candidates ?   [ for while switch ...
The classic code completion dose. When I using classic code completion, after I typing  whi the whole while will be listed .  This happens to [for switch .. ] too.
But when I using clang_client,  I have to type whole switch [for while] by myself. 


default compiler: GNU GCC Compiler (msys2/ucrt64/bin/)
my projects' path has no spaces
Specify clangd executable to use: msys2/ucrt64/bin/cland.exe
gcc -v:          gcc version 14.2.0 (Rev1, Built by MSYS2 project)
clang -version: 18.1.8 

my settings  [attachments]
8
Help / Re: clangd code completion
« Last post by Pecan on Yesterday at 06:29:40 am »

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.
9
Help / Re: clangd code completion
« Last post by juxin5 on Yesterday at 03:15:27 am »
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 ?

thx for the reply.

it's "C:\Program Files\LLVM\bin\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.

that is a method listed on the wiki. And so is the LLVM one. They are both supposed to work right...?
10
Help / Re: clangd code completion
« Last post by Pecan on October 12, 2024, 11:49:07 pm »
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 ?
Pages: [1] 2 3 4 5 6 ... 10