Sign in Join

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

Mailing lists / lazarus / 2016-01

Zero-byte lpi files

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Werner Pamler

For some time now, I've been experiencing the problem that Lazarus sporadically writes 0-byte lpi files. Unfortunately I cannot reproduce this to give detailed instructions for a bug report.

I open an existing project, modify something, save, compile, modify again etc. Then I close Lazarus. When I come back some time later and try to re-open the same project, the IDE complains that "the file ... does not look like a lpi file". In the Windows explorer, the project's lpi file has a length of zero bytes. Fortunately, the backup file is still there which I can rename back to lpi to restore the project. But this is really annoying. Sometimes it also happens with new projects after the first save - and then there is no backup file yet...

Yesterday I had the case that almost every second save destroyed the lpi, today it's better.
I am using Laz trunk/fpc 3.0 on Win7.

Has anybody else seen this issue? Or is there anything which I do wrong?

Reply by email

Ondrej Pokorny
to Werner Pamler
Werner Pamler wrote 18 lines
For some time now, I've been experiencing the problem that Lazarus sporadically writes 0-byte lpi files. Unfortunately I cannot reproduce this to give detailed instructions for a bug report. I open an existing project, modify something, save, compile, modify again etc. Then I close Lazarus. When I come back some time later and try to re-open the same project, the IDE complains that "the file ... does not look like a lpi file". In the Windows explorer, the project's lpi file has a length of zero bytes. Fortunately, the backup file is still there which I can rename back to lpi to restore the project. But this is really annoying. Sometimes it also happens with new projects after the first save - and then there is no backup file yet... Yesterday I had the case that almost every second save destroyed the lpi, today it's better. I am using Laz trunk/fpc 3.0 on Win7. Has anybody else seen this issue? Or is there anything which I do wrong?

It should be fixed in trunk: http://bugs.freepascal.org/view.php?id=29462

Ondrej

Reply by email