Recent

Author Topic: [solved]Move project from 2.1.0 to 2.0.8 after recent chges to trunk break comp.  (Read 584 times)

grl

  • New Member
  • *
  • Posts: 38
Hi!

Recently TCustomComboBox.ReadOnly was removed in trunk (Rev. 63112). Unfortunately this breaks quite a few components (e.g fpspreadsheet and the commercial FastReport 6).

As the reason to use the trunk over the stable version was fixed quite some time ago I tried to move my project from trunk (2.1.0) back to stable (2.0.8 ).
Unfortunately neither the project file nor the lfms are processed properly - the project is not readable at all, the lfms do not display correctly, eg. the db components are missing.

Is there any way to move a whole project back to 2.0.8?
And out of curiosity: Why was TCustomComboBox.ReadOnly removed breaking a known behaviour?

regards
Lukas
« Last Edit: May 19, 2020, 09:33:48 pm by grl »

wp

  • Hero Member
  • *****
  • Posts: 7076
Is there any way to move a whole project back to 2.0.8?
I do this regularly with all my forum code samples and it works. The main issue, much more severe than the Combobox.ReadOnly thing, is the change in the file structure of the project's xml files. When you plan to port a project back to non-trunk you MUST go to "Project Options" > "Miscellaneous" and check "Maximize compatibility of project files (lpi and lps)" - this writes files in the old structure. Otherwise the project will look as if it does not contain any forms.

If you write packages you must know that a similar switch exists in the options of a package: At the bottom of the first page of the Package Editor there is a "Maximize compatibility of package file (lpk)" which must be checked, too. Note that this requires a recent trunk version because there was a bug which was fixed only recently.

The compilation issues of the specialized comboboxes in TAChart and FPSpreadsheet have been fixed. I cannot comment on FastReport 6 - you should contact the vendor.

The ReadOnly property of TCombobox has been deprecated for a long time. Read https://wiki.freepascal.org/Lazarus_2.0.0_release_notes#TCustomComboBox.ReadOnly_was_deprecated to learn about the reasons.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

grl

  • New Member
  • *
  • Posts: 38
When you plan to port a project back to non-trunk you MUST go to "Project Options" > "Miscellaneous" and check "Maximize compatibility of project files (lpi and lps)" - this writes files in the old structure.

Thanks for that tip - never noticed that little checkbox.

Now I can compile my projects using stable or testing branch without any hassle...

Thanks!

Lukas

 

TinyPortal © 2005-2018