Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2026-04

LPI (Lazarus project file) format change

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny

Hello,

I simplified the LPI file in commit
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/526d5065dfeaca3eb8a04d8f2581fd91bf3e96fb .

Now, the <IsPartOfProject /> values are not stored in LPI and LPS files, which makes the files smaller and more readable especially in commit changes.

This change broke forward compatibility of the LPI file. It means, if you save a project in current Lazarus 4.99, stable Lazarus 4.x (or old Lazarus 4.99) won't read it correctly.

Remedy:?check "Maximize compatibility of project files" in Project Options -> Miscellaneous,?if you are working in the most recent Lazarus 4.99 and?your project has to be opened in stable Lazarus 4.x and older.

Ondrej

Reply by email

Kostas Michalopoulos
to Ondrej Pokorny
Ondrej Pokorny wrote
Remedy:?check "Maximize compatibility of project files" in Project Options -> Miscellaneous,?if you are working in the most recent Lazarus 4.99 and?your project has to be opened in stable Lazarus 4.x and older.

I haven't got the latest version to check if it already happens, but wouldn't it be a good idea be to automatically check this for existing projects that use the current (pre-commit) format and use the new format for new projects or if the user explicitly unchecks this checkbox after opening a project with the old format?

Kostas

Reply by email