Lazarus

Using the Lazarus IDE => Options => Topic started by: ASBzone on January 04, 2021, 12:05:48 am

Title: A different Build Mode Options Issue...
Post by: ASBzone on January 04, 2021, 12:05:48 am
Happy New Year, everyone...

I extensively use Build Options in FPC/Lazarus, and recently, I added a fifth entry to my Build Options:

1. Windows x86 Debugging
2. Windows x64 Debugging
3. Windows x86 Release
4. Windows x64 Release
5. Raspberry Pi (Linux on ARM)

I tried exporting my build modes (ALL), and it said "5 modes exported".   Good.

But the XML clearly says "3 modes"    I tested this from multiple machines using the config mentioned in my signature.

Is anyone able to replicate this?  If so, I will open a ticket.

Thanks!
Title: Re: A different Build Mode Options Issue...
Post by: lainz on January 04, 2021, 12:07:18 am
It happened to me as well once. Newest added build modes was displayed on my machine but not in others machines...

Title: Re: A different Build Mode Options Issue...
Post by: ASBzone on January 04, 2021, 01:38:31 am
Thanks, @lainz


That's how I first noticed it.


It wasn't in the LPI file, even though that's where it is supposed to be stored.  And a full export turned out to be less than full.
Title: Re: A different Build Mode Options Issue...
Post by: ASBzone on January 27, 2021, 02:26:16 am
So, I just noticed what the deal is here.

Some build modes get stored in the .LPS file, even though I am not deliberately storing them there.

Then, when I select "Export Build Modes" it does not take the ones from the .LPS file, but only the ones from the .LPI file.

I'm running the FPC 3.2.1 fixes and Lazarus 2.11 fixes.

Title: Re: A different Build Mode Options Issue...
Post by: lucamar on January 27, 2021, 02:46:26 am
So, I just noticed what the deal is here.

Some build modes get stored in the .LPS file, even though I am not deliberately storing them there.

Then, when I select "Export Build Modes" it does not take the ones from the .LPS file, but only the ones from the .LPI file.

IIRC, the Project Session file only stores which is the active mode; the information about all modes in a project should be in the Project Information file so it's logical to take only that. If you really have build mode info other than the active one name in the .LPS then it's a bug, I think.

I just tested (2.0.10/3.2.0) adding another three modes (beyond Default, Debug & Release) to a project and exporting them and it exported all six when selecting "Export all modes". And, of course, added them to the .LPI

There should be no difference in Fixes.
Title: Re: A different Build Mode Options Issue...
Post by: lainz on January 27, 2021, 05:24:35 am
Yes but the bug is real. It happened to me as well.
I think it worth to ask in the bug tracker. They are really nice nowadays. They ask you some questions or ask to follow sone steps but finally you can get the bug solved.
Title: Re: A different Build Mode Options Issue...
Post by: ASBzone on February 25, 2021, 09:23:16 pm
I just tested (2.0.10/3.2.0) adding another three modes (beyond Default, Debug & Release) to a project and exporting them and it exported all six when selecting "Export all modes". And, of course, added them to the .LPI

There should be no difference in Fixes.


Thanks for your feedback, lucamar.   
Title: Re: A different Build Mode Options Issue...
Post by: ASBzone on February 25, 2021, 09:23:52 pm
Yes but the bug is real. It happened to me as well.
I think it worth to ask in the bug tracker. They are really nice nowadays. They ask you some questions or ask to follow sone steps but finally you can get the bug solved.


Thanks for your confirmation, lainz.   I'll open an issue in bug tracker.
TinyPortal © 2005-2018