Recent

Author Topic: A different Build Mode Options Issue...  (Read 2216 times)

ASBzone

  • Hero Member
  • *****
  • Posts: 614
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
A different Build Mode Options Issue...
« 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!
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.0.13 r64843 / FPC v3.2.1-r49055 (via FpcUpDeluxe) -- Windows 64-bit install w/Win32 and Linux/Arm cross-compiles
Primary System: Windows 10 Pro x64, Version 2009 (Build 19042)
Other Systems: Windows 10 Pro x64, Version 2009 (Build 19042) or greater

lainz

  • Hero Member
  • *****
  • Posts: 3837
Re: A different Build Mode Options Issue...
« Reply #1 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...


ASBzone

  • Hero Member
  • *****
  • Posts: 614
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: A different Build Mode Options Issue...
« Reply #2 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.
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.0.13 r64843 / FPC v3.2.1-r49055 (via FpcUpDeluxe) -- Windows 64-bit install w/Win32 and Linux/Arm cross-compiles
Primary System: Windows 10 Pro x64, Version 2009 (Build 19042)
Other Systems: Windows 10 Pro x64, Version 2009 (Build 19042) or greater

ASBzone

  • Hero Member
  • *****
  • Posts: 614
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: A different Build Mode Options Issue...
« Reply #3 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.

-ASB: https://www.BrainWaveCC.com/

Lazarus v2.0.13 r64843 / FPC v3.2.1-r49055 (via FpcUpDeluxe) -- Windows 64-bit install w/Win32 and Linux/Arm cross-compiles
Primary System: Windows 10 Pro x64, Version 2009 (Build 19042)
Other Systems: Windows 10 Pro x64, Version 2009 (Build 19042) or greater

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: A different Build Mode Options Issue...
« Reply #4 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.
« Last Edit: January 27, 2021, 02:50:23 am by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

lainz

  • Hero Member
  • *****
  • Posts: 3837
Re: A different Build Mode Options Issue...
« Reply #5 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.

ASBzone

  • Hero Member
  • *****
  • Posts: 614
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: A different Build Mode Options Issue...
« Reply #6 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.   
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.0.13 r64843 / FPC v3.2.1-r49055 (via FpcUpDeluxe) -- Windows 64-bit install w/Win32 and Linux/Arm cross-compiles
Primary System: Windows 10 Pro x64, Version 2009 (Build 19042)
Other Systems: Windows 10 Pro x64, Version 2009 (Build 19042) or greater

ASBzone

  • Hero Member
  • *****
  • Posts: 614
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: A different Build Mode Options Issue...
« Reply #7 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.
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.0.13 r64843 / FPC v3.2.1-r49055 (via FpcUpDeluxe) -- Windows 64-bit install w/Win32 and Linux/Arm cross-compiles
Primary System: Windows 10 Pro x64, Version 2009 (Build 19042)
Other Systems: Windows 10 Pro x64, Version 2009 (Build 19042) or greater

 

TinyPortal © 2005-2018