Problems opening previous projects with 1.6 in OS X lazarus / 9-Editor ---------------------------------------------------------------------- JimKueneman · 2016-09-10 01:18 Anyone else having problems with 1.6 (only seems to be in OS X) throwing an exception of not finding the root element in the form file when opening older projects?  It make 1.6 almost useless for old projects.  It acts like the stream reading in the XML file is not being reset back to 0 position before trying to use ReadXMLFile Jim ---------------------------------------------------------------------- Phil · 2016-09-10 01:42 I've never seen anything like that with 1.6 on OS X. What is the exception? Note that form files are not XML, so if you're getting an XML error, maybe that from a corrupt .lpi (project info) file. ---------------------------------------------------------------------- JimKueneman · 2016-09-10 01:44 Read Error In the file /User/jim......./form_template.lfm In 'stream:' (line1 pos1): Root element is missing In 'stream:' (line1 pos1): root element is missing It happens on every unit I open that has a lfm attached to it. And it is the same thing on my iMac (El Capitan) and MacAir (Mavericks and then El Capitain) Jim ---------------------------------------------------------------------- Phil · 2016-09-10 01:47 Post one of those .lfm files here maybe so we can look at it? ---------------------------------------------------------------------- JimKueneman · 2016-09-10 01:52 www.mustangpeak.net/form_template.lfm www.mustangpeak.net/form_template.lfm.zip ---------------------------------------------------------------------- Phil · 2016-09-10 01:56 No problem opening that .lfm file with Lazarus. Also, it was created with 1.6.0.4:   LCLVersion = '1.6.0.4' ---------------------------------------------------------------------- JimKueneman · 2016-09-10 01:58 I assumed that as it opens and works (and likely saved) with 1.6 for Windows in a VM.   What to look for? Jim ---------------------------------------------------------------------- Phil · 2016-09-10 02:10 The wording of that error message is what I see in xmltextreader.pp, but a form file is not an XML file. Makes me think the problem is elsewhere, like maybe in an XML file such as .lpi or .lps. ---------------------------------------------------------------------- JimKueneman · 2016-09-10 02:16 Created a new project, browsed to the folder with that pas/lfm file.  Opened the Pas file... Same error. ---------------------------------------------------------------------- Phil · 2016-09-10 02:18 Maybe zip that entire new project and post it here. I'll look at it. ---------------------------------------------------------------------- JimKueneman · 2016-09-10 02:27 Dooh,   I got it.  I just recalled I fixed this problem in my custom component set the other day and I had not rebuild the components in the IDE.  The bug in my component was manifesting itself when the component was created on the form  Jim ---------------------------------------------------------------------- Phil · 2016-09-10 02:34 I think I've been bitten by that too, where compiling a package of components goes fine, and they even work fine in a project compiled with lazbuild, but since they're not yet in the IDE ("installed"), something fails when opening the project in the IDE.