Recent Posts

Pages: 1 2 3 4 5 6 [7] 8 9 10
61
Plugins development / Re: Code completion using LSP and clangd
« Last post by Pecan on April 09, 2024, 08:52:57 pm »
A few questions so I can get a picture of your system setup.
1) Are you actually compiling with Clang.exe or with mingw64 or mingw32.
2) Do you work in 32 bit C++ or 64bit C++ ?
3) After installing the nightly, click on mainmenu/plugins/manage plugins.
Is clangd_client listed. See image below.
Is codecompletion disabled? Is clangd_client enabled?

1) My default compiler is mingw64
2) 64bit C++ (I use 64 bit version of everything whenever possible, just cuz of the paranoia that things might not work)
3) Yes it's same as displayed in the image
(about the nightly build, I haven't tried April 1st built yet.)

Good , then we're both on the same page.
So now, remove the old December CodeBlocks and download the April one as noted in my last post.
We'll start from there to straighten thing out.

Oh, BTW be sure to close and restart CB after disabling CodeCompletion and re-enabling Clangd_client.
Else all sorts of weirdness happens.
62
Plugins development / Re: Code completion using LSP and clangd
« Last post by Pecan on April 09, 2024, 08:49:00 pm »
Something happened and I lost this post.
So I'm reposting.

Hello sir, I tried to install your plugin but the plugin gets disabling upon resart. I am following this https://wiki.codeblocks.org/index.php/CB_Clangd_Client#Windows:_Compiler_Clangd.2FLLVM_Package_Installerguide.

I installed a nightly build of Code blocks, from 16th December 2023.
And downloaded,installed clang.exe with the following command: "pacman -S mingw-w64-clang-x86_64-clang-tools-extra".
And disabled the "code completion" plugin, then enabled "Clangd_Client".
Set my default compiler to clang.exe in code blocks compiler setting.

But after restarting code blocks, clangd_client remains disabled and there is no option of "clangd_client" on the left of editor settings.
I am not sure if following ONLY the "Configuring clangd_client" and "Windows: Compiler Clangd/LLVM Package Installer" section of the guide has led to this error or am I misinterpreting the instruction about setting a compiler before restarting.

I've moved this message here from personal msgs so that we all can proffer from the solution.
 @ kakas

I'd suggest that you uninstall (or remove) that old nightly 16 December 2023 and install this the April 1, 2024 version instead since it has many additions and fixes over last years version.
https://forums.codeblocks.org/index.php/topic,25755.msg175319.html#msg175319

You don't actually "install" it. You just download and unzip the three zips into a newly made folders.
cbNightly   <-- new main nightly folder
  codeblocks <-- contains all the codeblocks zips except the compiler zip.
  mngw64    <-- contains the compiler contents

Start a command session click the windows key then type "cmd" and enter key.
From with the cmd window "cd cbNightly\codeblocks
Type: codeblocks.exe /d
Question: Does codeblocks show ok?
If so, Check that the compilers tool chain is set to the download mingw64 executables.
Click mainMenu/Settings/Compiler/Toolchain executables
See second image below.
 
Please excuse me if I insult your intelligents. I just want to get the basics out of the way so we have approximately the same setup to work with.

A few questions so I can get a picture of your system setup.
1) Are you actually compiling with Clang.exe or with mingw64 or mingw32.
2) Do you work in 32 bit C++ or 64bit C++ ?
3) After installing the nightly, click on mainmenu/plugins/manage plugins.
Is clangd_client listed. See image below.
Is codecompletion disabled? Is clangd_client enabled?
63
Plugins development / Re: Code completion using LSP and clangd
« Last post by kakas on April 09, 2024, 08:31:19 pm »
A few questions so I can get a picture of your system setup.
1) Are you actually compiling with Clang.exe or with mingw64 or mingw32.
2) Do you work in 32 bit C++ or 64bit C++ ?
3) After installing the nightly, click on mainmenu/plugins/manage plugins.
Is clangd_client listed. See image below.
Is codecompletion disabled? Is clangd_client enabled?

1) My default compiler is mingw64
2) I am not really sure what this means(but I use 64 bit version of everything whenever possible, just cuz of the paranoia that things might not work, I also have built for only 64bit systems)
3) Yes it's same as displayed in the image
(about the nightly build, I haven't tried April 1st built yet.)
64
Plugins development / Re: Code completion using LSP and clangd
« Last post by kakas on April 09, 2024, 08:23:11 pm »
 :D thank you for the reassuring reply.
about the issue. There's another thing I would like to add.
when enabling the the plugin, A pop up message appears on the bottom right of the screen.
65
Plugins development / Re: Code completion using LSP and clangd
« Last post by Pecan on April 09, 2024, 07:48:48 pm »
Hello sir, I tried to install your plugin but the plugin gets disabling upon resart. I am following this https://wiki.codeblocks.org/index.php/CB_Clangd_Client#Windows:_Compiler_Clangd.2FLLVM_Package_Installerguide.

I installed a nightly build of Code blocks, from 16th December 2023.
And downloaded,installed clang.exe with the following command: "pacman -S mingw-w64-clang-x86_64-clang-tools-extra".
And disabled the "code completion" plugin, then enabled "Clangd_Client".
Set my default compiler to clang.exe in code blocks compiler setting.

But after restarting code blocks, clangd_client remains disabled and there is no option of "clangd_client" on the left of editor settings.
I am not sure if following ONLY the "Configuring clangd_client" and "Windows: Compiler Clangd/LLVM Package Installer" section of the guide has led to this error or am I misinterpreting the instruction about setting a compiler before restarting.

I've moved this message here from personal msgs so that we all can proffer from the solution.
 @ kakas

I'd suggest that you uninstall (or remove) that old nightly 16 December 2023 and install this the April 1, 2024 version instead since it has many additions and fixes over last years version.
https://forums.codeblocks.org/index.php/topic,25755.msg175319.html#msg175319

You don't actually "install" it. You just download and unzip the three zips into a newly made folders.
cbNightly   <-- new main nightly folder
  codeblocks <-- contains all the codeblocks zips except the compiler zip.
  mngw64    <-- contains the compiler contents

Start a command session click the windows key then type "cmd" and enter key.
From with the cmd window "cd cbNightly\codeblocks
Type: codeblocks.exe /d
Question: Does codeblocks show ok?
If so, Check that the compilers tool chain is set to the download mingw64 executables.
Click mainMenu/Settings/Compiler/Toolchain executables
See second image below.
 
Please excuse me if I insult your intelligents. I just want to get the basics out of the way so we have approximately the same setup to work with.

A few questions so I can get a picture of your system setup.
1) Are you actually compiling with Clang.exe or with mingw64 or mingw32.
2) Do you work in 32 bit C++ or 64bit C++ ?
3) After installing the nightly, click on mainmenu/plugins/manage plugins.
Is clangd_client listed. See image below.
Is codecompletion disabled? Is clangd_client enabled?
66
It's probably because you have a unicode (non ascii) character in your message.
Unfortunately, the forum does not accept some unicode chars.

So make sure the message is all ascii.
Sorry about that.
67
When trying to view sent items in "my messages" it gives an error: Database error, Please try again. If you come back to this error screen, report the error to an administrator.
I don't know how to contact the administrator or know what caused it.
Tried searching for similar problems in the forum and it all said not to use non-ASCII characters.
I believe I didn't use any non ASCII character on the message. Now I don't know if the message is not sent or if it is just not visible to me.
68
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by kakas on April 09, 2024, 05:46:20 pm »
I am back again.

lol didn't know we could do that... weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
69
Nightly builds / Re: The 05 January 2024 build (13426) is out.
« Last post by Miguel Gimenez on April 09, 2024, 03:35:53 pm »
Future spam added to radar.
70
Nightly builds / Re: The 05 January 2024 build (13426) is out.
« Last post by OaklynnBlevins on April 09, 2024, 03:29:04 pm »
Any update about it?
Pages: 1 2 3 4 5 6 [7] 8 9 10