Genio-The-Haiku-IDE / Genio

The Haiku IDE
Other
59 stars 9 forks source link

"Bindcatalogs" using wrong exe in debug mode #369

Closed humdingerb closed 1 month ago

humdingerb commented 2 months ago

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.

jackburton79 commented 2 months ago

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 ?

Freaxed commented 2 months ago

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: @.***>

jackburton79 commented 2 months ago

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

humdingerb commented 2 months ago

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... :)

jackburton79 commented 2 months ago

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 commented 1 month ago

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 commented 1 month ago

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

jackburton79 commented 1 month ago

Already fixed locally, will commit later