Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Spam reported to moderator.
2
What is base in the first example?
Do you see any errors in the script console?
Have you tried to execute your scripts in the script console to debug them?
Have you added some prints to debug what is going on?

AddCommandsAfterBuild is the correct function/method to call if you want to add post build commands.

There are very few APIs which work only in wizards. Most of the APIs work everywhere. moviesda

What constitutes the base in the initial example?
Do you observe any errors displayed in the script console?
Have you attempted to execute your scripts within the script console for debugging purposes?
Have you incorporated print statements to facilitate debugging and understand the current behavior?

AddCommandsAfterBuild represents the appropriate function or method to invoke when you intend to incorporate post-build commands.

The majority of available APIs function across various contexts, with only a limited number of APIs restricted exclusively to wizards.
3
Help / File extension isn't automatic
« Last post by Kosame on Yesterday at 04:11:20 pm »
Hello, I use TuxedoOS, I installed codeblocks via apt and when ever I wanna create a file, the extension isn't set automatically, I have to type it manually, how to fix this issue ?
4
Nightly builds / Re: The 06 September 2026 build (14003) is out.
« Last post by SharkCZ on Yesterday at 10:42:12 am »
When working on builds for Fedora (https://copr.fedorainfracloud.org/coprs/sharkcz/danny/build/10959184/, details are in the builder-live.log files), I have noticed that libtool version 2.6.2 present in Rawhide fails the build of the codesnippets plugin after the tinyxml LIBADD was removed from its Makefile.am in revision 13996. System tinyxml library is used in the builds. I have confirmed that with libtool downgraded to 2.5.4 the build runs OK. AFAICT other plugins still use the LIBADD mechanism. Likely some change in libtool is causing this ...

Thanks for the report.
Fixed svn r14017
Thanks for the fix and sorry for not responding earlier, but got distracted by day job ...
5
Hi @ollydbg,

Could you please try below patch? I could see compiler auto-detection dialogue when I tested build via command line in Ubuntu, below patch avoided it.

Code
diff --git a/src/sdk/compilerfactory.cpp b/src/sdk/compilerfactory.cpp
index f36e2beb9..87f2eb5ae 100644
--- a/src/sdk/compilerfactory.cpp
+++ b/src/sdk/compilerfactory.cpp
@@ -288,7 +288,7 @@ void CompilerFactory::LoadSettings()
     }
 
     // auto-detect missing compilers
-    if (needAutoDetection)
+    if (needAutoDetection && !Manager::IsBatchBuild())
     {
         AutoDetectCompilers adc(Manager::Get()->GetAppWindow());
         PlaceWindow(&adc);


Thanks. I will try it.

Under Windows, sometimes, I use some AI agent, and those agent will call codeblocks.exe in the command line to build the cbp project. I always see the build log dialog opened when the AI agent call the build process, but in-fact, I never see the compiler setting dialog. Maybe the compiler was already configured. I can basically created a default.conf file(just a xml file) to used in the github action, in the default.conf file, I can set all the compiler paths.

Another issue is the "global compiler variables", when it is empty in the default.conf, it will popup a dialog to let the user sets.
6
Development / Re: Index for Loaden's patches
« Last post by ollydbg on September 29, 2026, 11:25:28 am »
7
Hi @ollydbg,

Could you please try below patch? I could see compiler auto-detection dialogue when I tested build via command line in Ubuntu, below patch avoided it.

Code
diff --git a/src/sdk/compilerfactory.cpp b/src/sdk/compilerfactory.cpp
index f36e2beb9..87f2eb5ae 100644
--- a/src/sdk/compilerfactory.cpp
+++ b/src/sdk/compilerfactory.cpp
@@ -288,7 +288,7 @@ void CompilerFactory::LoadSettings()
     }
 
     // auto-detect missing compilers
-    if (needAutoDetection)
+    if (needAutoDetection && !Manager::IsBatchBuild())
     {
         AutoDetectCompilers adc(Manager::Get()->GetAppWindow());
         PlaceWindow(&adc);

8
Check out "headless" search in the sourceforge tickets as there may be a better option that you may not have spotted, but I could be wrong.
There may be other keywords to see if there is a CI/CD patch.

OK, thanks, I will try it.

Add headless batch mode support

Inform user about status of project loading/​saving

Crash on trying to run codeblocks headless in xvfb

It looks like the first 1 is the best match.
9
Check out "headless" search in the sourceforge tickets as there may be a better option that you may not have spotted, but I could be wrong.
There may be other keywords to see if there is a CI/CD patch.
10
Development / Re: cbp2make does not contain a Makefile.am?
« Last post by ollydbg on September 28, 2026, 01:07:17 am »
Try this:
https://github.com/stahta01/CodeBlocks_Unofficial_Testing/blob/master/src/tools/cbp2make/Makefile.am

Hi, thanks. I am not familiar with autotools, can any dev help to add them in the trunk. Thanks.
Pages: [1] 2 3 4 5 6 ... 10