Genio icon indicating copy to clipboard operation
Genio copied to clipboard

"Bindcatalogs" using wrong exe in debug mode

Open humdingerb opened this issue 1 year ago • 5 comments

If you're in debug build mode and invoke "Make bindcatalogs" the catalogs get added to the executable defined as the "Release" target, instead of the "Debug" target. For example, for the Genio project, they are added to ./app/Genio instead of ./app/Genio_debug.

humdingerb avatar Apr 28 '24 05:04 humdingerb

We can probably solve this for Genio (by using "make debug=1 bindcatalogs"), but I think this won't work for other projects, unless they use the same way to enable debug builds. What do you think, @Freaxed ?

jackburton79 avatar May 02 '24 21:05 jackburton79

With the default Haiku makefile you can use “make DEBUGGER=TRUE bindcatalogs” to enable debug build.

Il giorno gio 2 mag 2024 alle 23:50 Stefano Ceccherini < @.***> ha scritto:

We can probably solve this for Genio (by using "make debug=1 bindcatalogs"), but I think this won't work for other projects, unless they use the same way to enable debug builds. What do you think, @Freaxed https://github.com/Freaxed ?

— Reply to this email directly, view it on GitHub https://github.com/Genio-The-Haiku-IDE/Genio/issues/369#issuecomment-2091803668, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALC2DXQZBKJ3TBGUH2UULDZAKYLVAVCNFSM6AAAAABG4WD4CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRHAYDGNRWHA . You are receiving this because you were mentioned.Message ID: @.***>

Freaxed avatar May 03 '24 04:05 Freaxed

Ok, what I meant it would work only for makefile engine projects, it can't be done in a generic way. Just like we have release and debug build profiles, one could have different debug builds commands

jackburton79 avatar May 03 '24 04:05 jackburton79

Yeah, this catkeys business is a bit of an issue, because "bindcatalogs" and "catkeys" are makefile_engine targets. If you don't use Makefiles, both menu items don't make sense...

One could do what those targets do 'manually' and invoke "collectcatkeys" or linkcatkeys etc. manually. But where to configure which languages to process if it's not defined in a Makefile? You'd need a new Project setting with checkboxes for all catkeys that are found in the locales folder.

Sorry, I'm brain-storming here... :)

humdingerb avatar May 03 '24 05:05 humdingerb

Yeah, this catkeys business is a bit of an issue, because "bindcatalogs" and "catkeys" are makefile_engine targets. If you don't use Makefiles, both menu items don't make sense...

Yeah, I guess we would need to detect if the project is makefile_engine based and only enable these menuitems in that case.

One could do what those targets do 'manually' and invoke "collectcatkeys" or linkcatkeys etc. manually. But where to configure which languages to process if it's not defined in a Makefile? You'd need a new Project setting with checkboxes for all catkeys that are found in the locales folder.

Sorry, I'm brain-storming here... :)

Np, it's always useful to do that :)

jackburton79 avatar May 03 '24 06:05 jackburton79

make DEBUGGER=TRUE bindcatalogs

I tried the following commands (from commandline) without luck:

make DEBUGGER=TRUE bindcatalogs
make DEBUGGER=1 bindcatalogs
make DEBUG=TRUE bindcatalogs
make DEBUG=1 bindcatalogs
DEBUGGER=TRUE make bindcatalogs
DEBUGGER=1 make bindcatalogs
DEBUG=TRUE make bindcatalogs
DEBUG=1 make bindcatalogs

also with semicolon between the variable and commands.

jackburton79 avatar May 23 '24 10:05 jackburton79

Ah of course, Genio requires "debug=1" (lowercase)

jackburton79 avatar May 23 '24 10:05 jackburton79

Already fixed locally, will commit later

jackburton79 avatar May 23 '24 12:05 jackburton79