Author Topic: The 12 February 2023 build (13205) is out.  (Read 14390 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: The 12 February 2023 build (13205) is out.
« Reply #15 on: February 16, 2023, 11:22:25 pm »
Hi,

Uing this latest nigthly (but the issue was present in previous nigthly too) I observed the followin issue:

1) I create a new compiler setup (UCRT64) simply copying the MINGW64 and changin the paths
2) I selected the new UCRT64 as default
3) I restarted CB
4) now the clangd pluging is disabled. I re-enabled the clangd pluging and restared CB
5) Now the clangd plugin is not available even if the plugin is enabled

May be this is a bug. I don't know whether the clangd is expected to work with "official" compiler setups only, in case please add UCRT64 because Msys2 is now considering ucrt variant as the default environment.

Hope this helps

Sorry, I'm lost here.
What are the steps to make UCRT64 a compiler.
I suspect clangd_client is not finding a master path for this compiler you setup and disables itself.
Tell me how to test this step-by-step.  (Im' a bit slow now-a-days).

Sorry I missed this earlier. It's tax season, so my focus is elsewhere lately.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: The 12 February 2023 build (13205) is out.
« Reply #16 on: February 17, 2023, 12:15:43 am »
To MaxGaspa and Pecan:

My guess is clangd executable is not set to a valid value.

Edit: After I installed mingw-w64-ucrt-x86_64-clang-tools-extra I was able to set clangd executable to a valid value.

I did not try testing the plugin I just enable and configured the plugin.

Tim S.
« Last Edit: February 17, 2023, 12:47:47 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: The 12 February 2023 build (13205) is out.
« Reply #17 on: February 17, 2023, 07:12:57 pm »
To MaxGaspa and Pecan:

My guess is clangd executable is not set to a valid value.

Edit: After I installed mingw-w64-ucrt-x86_64-clang-tools-extra I was able to set clangd executable to a valid value.

I did not try testing the plugin I just enable and configured the plugin.

Tim S.

@stahta01
Is this an msys2 install?
What's the commands to do the install you're suggesting.
TIA

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: The 12 February 2023 build (13205) is out.
« Reply #18 on: February 17, 2023, 07:25:14 pm »
The standard MSys2 command.

Code
pacman -S --needed mingw-w64-ucrt-x86_64-clang-tools-extra

Note: I do not normally use CB these days; but, I use MSys2 on a daily basis.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MaxGaspa

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: The 12 February 2023 build (13205) is out.
« Reply #19 on: February 17, 2023, 11:49:02 pm »
What are the steps to make UCRT64 a compiler.
I suspect clangd_client is not finding a master path for this compiler you setup and disables itself.

1) Start with the default MINGW64 compiler setup (working clangd plugin)
2) In Setting->Compiler Copy the MINGW64 and call it UCRT64
3) In Global Complier Setting -> Toolchain executable set the Compiler's installation directory:  Set the new directory (MSYS is using c:\msys64\ucrt64 ) All the program .exe are still valid
4) Click Set as default
5) in the Setting->Configure Editor -> Clangd client -> C/C++ parser -> Specify clangd executable to use I have C:\msys64\ucrt64\bin\clangd.exe (the autodetect is not complaining)
6) close CB and reopen it. No error message or warning is shown.

Now clangd is disabled and it is not possible to re-enable it. If you  re-enable clangd using Plugin->Manage Plugins the " View->Toolbar->clangd_client" is absent

At the moment I'm still using MINGW64 as the defalut compiler and I'm changng the compiler to UCRT64 in my projects using Project->build options-select compiler and everything works well.

In all my testing the clangd executable is correctly set. I installed the mingw-w64-ucrt-x86_64-clang-tools-extra package using pacman (latest version). Please note: the old Mingw64 installation was deleted, now I'm using ucrt64 only.


My guess is clangd executable is not set to a valid value.

The clangd executable was always set to a valid one. The autodetect is not complaining and no warning is present opening CB.


Hope this helps

« Last Edit: February 17, 2023, 11:52:16 pm by MaxGaspa »

Offline Neo

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: The 12 February 2023 build (13205) is out.
« Reply #20 on: February 18, 2023, 03:14:08 am »
Just curious, where can I download the latest clangd plugin? The sf.net (https://sourceforge.net/projects/cb-clangd-client/files/Plugin_Install_Package/Windows_x64/) build stays at Oct last year.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: The 12 February 2023 build (13205) is out.
« Reply #21 on: February 18, 2023, 06:59:35 am »
Just curious, where can I download the latest clangd plugin? The sf.net (https://sourceforge.net/projects/cb-clangd-client/files/Plugin_Install_Package/Windows_x64/) build stays at Oct last year.
Clangd_client plugin has already been added to the CodeBlocks build system as a contrib plugin.
It's included in each "Nightly Build" which can be downloaded via this forum. See https://forums.codeblocks.org/index.php/board,20.0.html
(namely the first post in this forum thread).

Clangd_client plugin needs a clangd server process to load. Directions for providing clangd (linux) or clangd.exe(windows) is in the CodeBlocks wiki at https://wiki.codeblocks.org/index.php/CB_Clangd_Client

You can ignore the info in the wiki about building the plugin.
It's already included in the Nightly builds.
« Last Edit: February 18, 2023, 07:08:30 am by Pecan »

Offline Neo

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: The 12 February 2023 build (13205) is out.
« Reply #22 on: February 18, 2023, 11:53:54 am »
Thanks for the direction.

I have a small problem with clangd. The tooltip most of time is too narrow, see the attached picture.

Just curious, where can I download the latest clangd plugin? The sf.net (https://sourceforge.net/projects/cb-clangd-client/files/Plugin_Install_Package/Windows_x64/) build stays at Oct last year.
Clangd_client plugin has already been added to the CodeBlocks build system as a contrib plugin.
It's included in each "Nightly Build" which can be downloaded via this forum. See https://forums.codeblocks.org/index.php/board,20.0.html
(namely the first post in this forum thread).

Clangd_client plugin needs a clangd server process to load. Directions for providing clangd (linux) or clangd.exe(windows) is in the CodeBlocks wiki at https://wiki.codeblocks.org/index.php/CB_Clangd_Client

You can ignore the info in the wiki about building the plugin.
It's already included in the Nightly builds.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: The 12 February 2023 build (13205) is out.
« Reply #23 on: February 18, 2023, 06:45:49 pm »
Thanks for the direction.

I have a small problem with clangd. The tooltip most of time is too narrow, see the attached picture.

Just curious, where can I download the latest clangd plugin? The sf.net (https://sourceforge.net/projects/cb-clangd-client/files/Plugin_Install_Package/Windows_x64/) build stays at Oct last year.
Clangd_client plugin has already been added to the CodeBlocks build system as a contrib plugin.
It's included in each "Nightly Build" which can be downloaded via this forum. See https://forums.codeblocks.org/index.php/board,20.0.html
(namely the first post in this forum thread).

Clangd_client plugin needs a clangd server process to load. Directions for providing clangd (linux) or clangd.exe(windows) is in the CodeBlocks wiki at https://wiki.codeblocks.org/index.php/CB_Clangd_Client

You can ignore the info in the wiki about building the plugin.
It's already included in the Nightly builds.

Thanks for the report.
What OS are you running on?

The plugin has no control of the width of the tooltip. It's caused by the core plugin manager.
I'll put it on the "ToDo" list of problems to investigate.
But I won't be able to attend to it until after April (tax season is hear).
« Last Edit: February 18, 2023, 06:48:21 pm by Pecan »

Offline Neo

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: The 12 February 2023 build (13205) is out.
« Reply #24 on: February 19, 2023, 05:26:01 am »
Thanks for the direction.

I have a small problem with clangd. The tooltip most of time is too narrow, see the attached picture.

Just curious, where can I download the latest clangd plugin? The sf.net (https://sourceforge.net/projects/cb-clangd-client/files/Plugin_Install_Package/Windows_x64/) build stays at Oct last year.
Clangd_client plugin has already been added to the CodeBlocks build system as a contrib plugin.
It's included in each "Nightly Build" which can be downloaded via this forum. See https://forums.codeblocks.org/index.php/board,20.0.html
(namely the first post in this forum thread).

Clangd_client plugin needs a clangd server process to load. Directions for providing clangd (linux) or clangd.exe(windows) is in the CodeBlocks wiki at https://wiki.codeblocks.org/index.php/CB_Clangd_Client

You can ignore the info in the wiki about building the plugin.
It's already included in the Nightly builds.

Thanks for the report.
What OS are you running on?

The plugin has no control of the width of the tooltip. It's caused by the core plugin manager.
I'll put it on the "ToDo" list of problems to investigate.
But I won't be able to attend to it until after April (tax season is hear).

It's a Windows 8.1 Pro VM. I also tried it in a Windows 10 VM, got same behaviour.

EDIT:
I found the cause of this problem. My system font scaling is set to 125%. I revert it back to 100% and the tooltip window works fine.
« Last Edit: February 19, 2023, 05:37:07 am by Neo »