Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Help / Re: CMakeLists.txt and Code::Blocks
« Last post by gtafan on May 15, 2025, 01:06:06 pm »
Have asked this question on cmake forum:

https://discourse.cmake.org/t/cmakelists-txt-and-code-blocks/14071

But doesn't look like I ever get an answer there.  :(
92
Plugins development / Re: Code format support in clangd_client plugin
« Last post by Pecan on May 14, 2025, 09:20:07 pm »
@ Christo

Thanks, fixed in svn 13664
93
Plugins development / Re: Code format support in clangd_client plugin
« Last post by christo on May 14, 2025, 06:48:24 pm »
Hi Pecan, I'm seeing below error on right clicking.

../src/common/menucmn.cpp(623): assert ""position < m_items.GetCount()"" failed in FindItemByPosition(): wxMenu::FindItemByPosition(): invalid menu index

https://github.com/wxWidgets/wxWidgets/blob/v3.2.4/src/common/menucmn.cpp#L623

I've enabled debug mode of wxWidgets, that might be the reason error is seen for me, and NULL for you.

Screenshot attached.
94
Nightly builds / Re: The 06 April 2025 build (13650) is out.
« Last post by ThierryD on May 14, 2025, 05:51:32 pm »
Hi,

Prevision to propose this nigthly (13650) on Linux ?

Thank's
95
Plugins development / Re: Code format support in clangd_client plugin
« Last post by Pecan on May 14, 2025, 05:48:58 pm »
@ christo

In what way does it not work?
For me, if AStyle is enabled, it places "Format use clangd" just after the AStyle context menu item, else it appends it to the context menu.
96
Using Code::Blocks / 25.03: $if(condition){}{} does not work any more
« Last post by coxygene on May 14, 2025, 03:04:58 pm »
When "$if(cond){}{}" is used, it will corrupt the concatenated result string, skipping x characters!

Ex: I use global variables to link the project with the right library
$if(${#vdll_fox}){DLL_FOX-1-7-79}{LIB_FOX}
97
Using Code::Blocks / Active tab color
« Last post by nenin on May 14, 2025, 12:54:13 pm »
Is it possible to assign users color of the active editor tab?
98
General (but related to Code::Blocks) / Re: My account on Forum hacked ?
« Last post by gd_on on May 14, 2025, 12:24:41 pm »
And as if on purpose, I received another 12 password reset emails this morning... Maybe you're the hacker, zukote1991.
99
General (but related to Code::Blocks) / Re: My account on Forum hacked ?
« Last post by zukote1991 on May 14, 2025, 11:15:38 am »
That definitely sounds suspicious. Someone might be trying to gain access to your account by triggering the password reset. If you haven't already, I recommend changing your password to something stronger and enabling any additional security features available. Also, keep an eye on any unusual login activity. Good thing your account still works!
100
Plugins development / Re: Code format support in clangd_client plugin
« Last post by christo on May 13, 2025, 06:13:26 pm »
Thank you Pecan.

In the change applied in svn, menu item is added after astyle menu item. But if I disable astyle plugin, this leads to context menu not working.

Edit:
Following change fixes the issue.
Code
diff --git a/src/plugins/contrib/clangd_client/src/codecompletion/codecompletion.cpp b/src/plugins/contrib/clangd_client/src/codecompletion/codecompletion.cpp
index 0964bbd37..e122e4823 100644
--- a/src/plugins/contrib/clangd_client/src/codecompletion/codecompletion.cpp
+++ b/src/plugins/contrib/clangd_client/src/codecompletion/codecompletion.cpp
@@ -1073,11 +1073,9 @@ void ClgdCompletion::BuildModuleMenu(const ModuleType type, wxMenu* menu, const
         const wxString labelAStyle = _("Format use AStyle");
         const wxString label = _("Format use Clangd"); // (christo 25/05/02)
         int position = Manager::Get()->GetPluginManager()->FindSortedMenuItemPosition(*menu, labelAStyle);
-        wxMenuItem* item = menu->FindItemByPosition(position);
-        if (item)  {
-            wxString itemLabel = item->GetItemLabelText();
-            if (itemLabel == labelAStyle)
-                position += 1;
+        if (position != menu->GetMenuItemCount())
+        {
+            position += 1;
         }
         menu->Insert(position, idCodeFormatterActiveFile, label, _("Format the selected source code (selected line) in the current file"));
Pages: 1 ... 5 6 7 8 9 [10]