Lazarus refuses to compile my project.
lazarus / 13-General
----------------------------------------------------------------------
99Percent · 2010-09-19 03:46
For some strange reason Lazarus now refuses to compile my project. I
click the green arrow and nothing happens, I try Run>Build, Run>Build
All and nothing happens, no error, no hanging, no messages in the
message box, nothing.
I go to Project Options and I see that there are no Auto-create forms
there, I add the main form and another auto-create form, and hit Ok,
but still nothing, I go back and see that it still has no auto-create
forms, despite my just explicit addition of them.
If I load another (smaller) project it compiles and runs fine.
What could be wrong? It was working fine this morning. It does have a
lot of forms and units in it (like 21), and I added more this morning
is there a limit?
Lazarus version 0.9.29 SVN 26610
FPC 2.4.3
Windows XP
----------------------------------------------------------------------
felipemdc · 2010-09-19 04:45
No, there is no maximum amount of units.
Try:
1> Edit your LPI file with a text editor and check if the main unit
information is added. Compare with the LPI from a new project
or
2> Try updating your Lazarus
----------------------------------------------------------------------
99Percent · 2010-09-19 16:54
Thanks.
I compared the lpi file to one that works correctly I saw that the
following line was missing:
Code: [Select] I added the line and now it
works. How that got deleted is a complete mystery, since I am not in
the habit of editing lpi files directly.
Looking at the lpi file I noticed that it references components I had
removed from the IDE, components the IDE insisted I reinstall
everytime I opened a form to edit, despite having eliminated all the
referred components in my project. I also removed the following from
the lpi file:
Code: [Select]
And Lazarus stopped bugging me everytime I opened a form of the
application to edit. I will report the bug.