Hello,
There is a project that I have problem loading with Delphi 10.4.2. Main form is not loaded and Structure has below error line in it
E2029 Declaration expected but end of file found at line 1 (1:1)
I checked the DFM and PAS files using text editor and also hex editor. Both seems fine to me. Only thing is PAS file is UTF8 with BOM and that is not a problem at all. BOM bytes are also correct (ef bb bf).
Unit file begins as following second line with a remark
DFM file begins as following
Project is from a private subversion repository. I checkout that repository as fresh in another directory and I still could not open it. But, another computer with Delphi 10.3.3 can load the project and its main form just fine.
DFM size is 3,544,092 bytes
PAS size is 414,839 bytes
I didn't hear any limit about dfm/unit size. Providing these information just in case.
My internet searches lead to actually corrupt files having similar errors and line number is not one. Wanted to ask in here with the hope that I am not the only person and there is a way to solve the problem.
Thanks & Regards,
Ertan