Currently C::B batch mode pops up a build GUI dialog.
There should be an new command line option added to run C::B batch mode in a headless mode so the build info is displayed on the console.
This will resolve ticket [#426].
Once I have this "fully" working I will supply a POC patch for feedback. Fully means being able to build C::B from C::B using the new headless command line parameter option with the build dialog not showing and the build info showing on the console.
There is no need of a command line option, batch mode should disable any kind of dialog.
This would cause allot of problems as the batch file has poped up a dialog for a very long time.
I have C::B not displaying the build gui dialog (this shows the build log), BUT the wxWidget library does not make it easy to create a hybrid app. A hybrid app is required (or failing this then two versions of codeblocks) and resolving the hybrid changes if it is possible will take a while (at least a week or more as I will make a number of wrong turns with this one). I have come across a few C::B devs that have popped up in my researching the hybrid issue, but I have only found one forum post that looked promising.
I have never used batch build, but Obfuscated was clear on this (and I agree): if a dialog is shown while batch building, it is a bug that must be fixed.
Which dialog pops up? What input combination makes it pop up?
Any batch build pops up a build dialog on any supported OS.
I will supply a patch just for the pop up so you can have a look at it, but it will need ticket 1196 otherwise you will get NO info or output from the batch build. The patch will not show any output from a normal build and I have not checked or tested or looked at the code to see if there are any other pop ups lurking in the code that could pop up on corner cases or some batch build other than building C::B.
I will try to get the patch extracted from my local tree and into the C::B trunk locally by the end of the week in order to produce the patch, unless you want just the changed files so you can manually merge the relevant bits. I will try to do the patch by the end of the week, but no promises.
Patch in ticket [#1196] applied in [r12712].
Related
Commit: [r12712]
Tickets:
#1196Diff:
Related
Tickets:
#446Diff:
Related
Tickets:
#426Tickets:
#446The ticket number did not match with the link, and the link had an extra https;//
If you just write [#426] the link is automatic and the Related section will include it.
Related
Tickets:
#426Attached is the patch. The following command is the resulting build build the source again, but without the default dialog popping up:
"D:\Temp\output31_64\codeblocks.exe" --no-dde --multiple-instance --verbose --no-splash-screen --debug-log --app-log-filename=Codeblocks_app_64.log --debug-log-filename=Codeblocks_debug_64.log --batch-headless-build --target=All --build "CodeBlocks_wx31_64.workspace"
If the variables are not in the C::B config then the variable pop up will occur as ticket 1184 was shot down and therefore there until 1184 is allowed to proceed this will always be the case.