Recent

Author Topic: Project options change by themselves [Solved]  (Read 21730 times)

bobc50

  • New Member
  • *
  • Posts: 30
Re: Project options change by themselves
« Reply #30 on: November 13, 2023, 03:38:04 pm »
Forget about "Set compiler options as default" - they only apply when you create a NEW PROJECT. When you open an EXISTING PROJECT they DO NOT APPLY.

Options not specified in the LPI file have a default value, which is hardcoded in the IDE sources.
Very clear and most helpful! Are the hardcoded values documented anywhere?

Short of changing my approach, which is based on my need to compare changes to prior versions, do you have a suggestion on how to keep this from happening going forward?
Other than the suggestions already mentioned, not really or that I am aware of.
I was "stuck" believing that removing the optimization level from the project.lpi file would force Lazarus to use "my" defaults. You've shown me otherwise. Based on your information I will get the developer to set the optimization level to 0 or 1, which should be good for this phase of development, and, once done, won't have to worry about resetting it. I will mark this as solved. Thanks for everyone who helped me through this knothole. Much appreicated!

n7800

  • Hero Member
  • *****
  • Posts: 709
  • Lazarus IDE contributor
    • GitLab profile
Re: Project options change by themselves
« Reply #31 on: November 15, 2023, 04:20:30 am »
Are the hardcoded values documented anywhere?

The easiest way is to delete the Lazarus configuration directory (or temporarily rename it), and start the IDE. All options will be default.

bobc50

  • New Member
  • *
  • Posts: 30
Re: Project options change by themselves
« Reply #32 on: November 17, 2023, 11:48:06 am »
Are the hardcoded values documented anywhere?

The easiest way is to delete the Lazarus configuration directory (or temporarily rename it), and start the IDE. All options will be default.
Thanks!

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Re: Project options change by themselves [Solved]
« Reply #33 on: November 18, 2023, 09:34:26 am »
@bobc50, you and your project's maintainer should learn to use build modes.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

bobc50

  • New Member
  • *
  • Posts: 30
Re: Project options change by themselves [Solved]
« Reply #34 on: November 19, 2023, 12:09:47 pm »
@bobc50, you and your project's maintainer should learn to use build modes.
Thanks, Juha. Based on what I learned from you and others this thread I had made that change. I no longer have any issues with optimization level. No need for manual adjustments. Yeah! For that I've very appreciative.

 

TinyPortal © 2005-2018