Recent Posts

Pages: 1 2 [3] 4 5 6 7 8 ... 10
Plugins development / Re: Code completion using LSP and clangd
« Last post by Pecan on October 03, 2022, 07:43:47 pm »

OK, I think I have fixed this issue by using such patch:

From 8523dd2bd9a58d1780c3d2efe9459f7e5fccfb41 Mon Sep 17 00:00:00 2001
From: hide<hide@hide.hide>
Date: Fri, 30 Sep 2022 15:11:28 +0800
Subject: fix the wrong tip code when Chinese comment is used

diff --git a/clangd_client/src/codecompletion/parser/parser.cpp b/clangd_client/src/codecompletion/parser/parser.cpp
index 2b9c5ea..3ddde25 100644
--- a/clangd_client/src/codecompletion/parser/parser.cpp
+++ b/clangd_client/src/codecompletion/parser/parser.cpp
@@ -2546,7 +2546,8 @@ void Parser::OnLSP_HoverResponse(wxCommandEvent& event, std::vector<ClgdCCToken>
         if (not valueItemsCount) return;
         json contents = pJson->at("result").at("contents");
-        wxString contentsValue ="value").get<std::string>();
+        std::string contentsValueStdString ="value").get<std::string>();
+        wxString contentsValue(contentsValueStdString.c_str(), wxConvUTF8);
         // Example Hover contents: L"instance-method HelloWxWorldFrame::OnAbout\n\nType: void\nParameters:\n- wxCommandEvent & event\n\n// In HelloWxWorldFrame\nprivate: void HelloWxWorldFrame::OnAbout(wxCommandEvent &event)"
         // get string array of hover info separated at /n chars.
@@ -2670,7 +2671,8 @@ void Parser::OnLSP_SignatureHelpResponse(wxCommandEvent& event, std::vector<cbCo
         json signatures = pJson->at("result").at("signatures");
         for (size_t labelndx=0; labelndx<signatureCount && labelndx<10; ++labelndx)
-                wxString labelValue = signatures[labelndx].at("label").get<std::string>();
+                std::string labelValueStdString = signatures[labelndx].at("label").get<std::string>();
+                wxString labelValue(labelValueStdString.c_str(), wxConvUTF8);

I'm not sure the second hunk is needed, but the first hunk is the true fix.


Would you test Clangd_Client rev 82 or the current nightly clangd_client to see if it solves the tooltip problem?

I've applied your fix for every clangd json std::string reference.
idValue = GetwxUTF8Str(pJson->at("id").get<std::string>());

GetwxUTFStr is defined as:
        wxString GetwxUTF8Str(const std::string stdString)
            return wxString(stdString.c_str(), wxConvUTF8);

Let me know if it works and thanks for testing.
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by sherwood on October 03, 2022, 01:15:27 pm »

I am new, I am here

BUT not new to Code::Blocks!

General (but related to Code::Blocks) / Re: Are Scripted Wizards without license?
« Last post by stahta01 on October 03, 2022, 01:58:49 am »
The ones a simple search on copyright found
Copyrighted by:
  HighTec EDV-Systeme GmbH
    multiple .h, .c, .S, and .x files
  Free Software Foundation
    multiple and Makefile
General (but related to Code::Blocks) / Are Scripted Wizards without license?
« Last post by stahta01 on October 03, 2022, 01:22:17 am »
I am using the CB Scripted wizard to create some simple projects? Do any of them have a license that is not mentioned in a source file?

Link to my git repo

I am having weird issues building MinGW64 GCC 4.8.x that are likely CRT/GCC/Binutils caused problems.
I am hoping these test project will help determine which part has the problem.

Tim S.
General (but related to Code::Blocks) / Thank you
« Last post by ikel on October 02, 2022, 09:06:06 pm »
Hi Code::Blocks developers,

Again, just to say thanks for all the efforts you put into Code::Blocks.
As for yesterday, I taught my 7 yo son on the basic of C++ programming using Code::Blocks IDE.

He found it easy to edit the file, and easy enough to hit the Build and Run button on the top toolbar.
He had a great time playing with cout, <<, endl and ;.

Many thanks.

Development / Re: Differences in the GUI with the update of the Dll wxmsw317u
« Last post by sergioferrari52 on October 02, 2022, 09:04:59 pm »
This problem was resolved with nightly revision 12932 that uses wx321 dlls.
General (but related to Code::Blocks) / Re: src/update.bat change typo
« Last post by Miguel Gimenez on October 02, 2022, 08:25:56 pm »
Fixed in r12938, thankk you.
General (but related to Code::Blocks) / src/update.bat change typo
« Last post by everSome on October 02, 2022, 08:15:27 pm »
The new function at the end of src/update.bat, namely

:copySvgFiles - create a directory and copy avg files to it
echo Copy svg files from %~1 to %~1
call:mkdirSilent %~2\svg
xcopy /D /y %~1\svg\*.svg %~2\svg > nul

would seem to have a typo in the echo line, perhaps it should be:

echo Copy svg files from %~1 to %~2
Nightly builds / Re: The 01 October 2022 build (12932) is out.
« Last post by Pecan on October 02, 2022, 06:01:42 pm »
The Clangd_Client for this nightly can be downloaded at

Filename: (Direct download link)

Copy the included to  <YourCodeBlocksNightlyFolder>\share\CodeBlocks\
Do not unzip this file.

Copy the included clangd_client.dll to <YourCodeBlocksNightlyFolder>\share\CodeBlocks\plugins\clangd_client.dll

Restart your CodeBlocks Nightly.

Install instructions for LLVM/clangd are included within the downloaded .zip file.
Development / Re: Crash when using with SVG files
« Last post by ollydbg on October 02, 2022, 04:53:36 pm »
It was a misunderstanfing on my side, it is fixed now.

Good work.
Pages: 1 2 [3] 4 5 6 7 8 ... 10