Sign in Join

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

Mailing lists / lazarus / 2008-08

Error when loading forms in Lazarus - Unknown property: "LCLVersion"

9 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

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

Reenen Laurie
to Mattias Gärtner

I've found the LCL Version thing too... And it frustrates me... Because I have one PC I have SVN on, and one old 0.9.24 version. If I want to edit a project after I've worked on the SVN, I've got to reopen all my .lfm's and remove it.

Can we make that it doesn't add it to EXISTING forms, and only add it to new forms?

Regards,
-Reenen

Mattias G?rtner wrote 39 lines
Zitat von Peter Williams : > Hi Mattias and Lazarus ppl, > > When attempting to open form "Thelpdialogform" I get this error: > > Error reading TJITForms > TJITForms::Thelpdialogform > Error reading Thelpdialogform.LCL Version: Unknown property: "LCLVersion" > [Continue loading] [Cancel loading this resource] [Stop all loading] > (3 buttons) > > Runtime error: > > Error > Project raised exception class 'EReadError' with message: > Unknown property: "LCLVersion" > [OK] <-- button to close message window > > I get this runtime error, on line 2708 of LResources > > What do I need to do to remove these errors?!? Do I need to upgrade my > version of Lazarus?!? If so, how do I do this? The version information was added with 0.9.25. The 0.9.24 does not know the property. It means you created/edited the form with a 0.9.25 IDE and opened them in a 0.9.24 IDE. To use a 0.9.24 IDE you must remove the LCLVersion line from the lfm files. Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080808/9e526b1b/attachment.html

Reply by email

Raistware
to Reenen Laurie

Reenen Laurie escribi?:

Show quoted text 76 lines
I've found the LCL Version thing too... And it frustrates me... Because I have one PC I have SVN on, and one old 0.9.24 version. If I want to edit a project after I've worked on the SVN, I've got to reopen all my .lfm's and remove it. Can we make that it doesn't add it to EXISTING forms, and only add it to new forms? Regards, -Reenen On Fri, Aug 8, 2008 at 9:33 AM, Mattias G?rtner < <mailto:>> wrote: Zitat von Peter Williams < <mailto:>>: > Hi Mattias and Lazarus ppl, > > When attempting to open form "Thelpdialogform" I get this error: > > Error reading TJITForms > TJITForms::Thelpdialogform > Error reading Thelpdialogform.LCL Version: Unknown property: "LCLVersion" > [Continue loading] [Cancel loading this resource] [Stop all loading] > (3 buttons) > > Runtime error: > > Error > Project raised exception class 'EReadError' with message: > Unknown property: "LCLVersion" > [OK] <-- button to close message window > > I get this runtime error, on line 2708 of LResources > > What do I need to do to remove these errors?!? Do I need to upgrade my > version of Lazarus?!? If so, how do I do this? The version information was added with 0.9.25. <http://0.9.25.> The 0.9.24 does not know the property. It means you created/edited the form with a 0.9.25 IDE and opened them in a 0.9.24 IDE. To use a 0.9.24 IDE you must remove the LCLVersion line from the lfm files. Mattias _______________________________________________ Lazarus mailing list <mailto:> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus -- o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. ------------------------------------------------------------------------ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

It should be better to have a config option:
(X) Add version info to all LFM (default)
( ) Add version info to new LFM
( ) Do not add version info to LFM files
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080808/5100f961/attachment.html

Reply by email

Marc Weustink
to Raistware
Raistware wrote 8 lines
Reenen Laurie escribi?: > I've found the LCL Version thing too... And it frustrates me... > Because I have one PC I have SVN on, and one old 0.9.24 version. If I > want to edit a project after I've worked on the SVN, I've got to > reopen all my .lfm's and remove it. > > Can we make that it doesn't add it to EXISTING forms, and only add it > to new forms?

See at comment at end.

Show quoted text 51 lines
> > Regards, > -Reenen > > > > On Fri, Aug 8, 2008 at 9:33 AM, Mattias G?rtner > < <mailto:>> wrote: > > Zitat von Peter Williams < <mailto:>>: > > > Hi Mattias and Lazarus ppl, > > > > When attempting to open form "Thelpdialogform" I get this error: > > > > Error reading TJITForms > > TJITForms::Thelpdialogform > > Error reading Thelpdialogform.LCL Version: Unknown property: > "LCLVersion" > > [Continue loading] [Cancel loading this resource] [Stop all loading] > > (3 buttons) > > > > Runtime error: > > > > Error > > Project raised exception class 'EReadError' with message: > > Unknown property: "LCLVersion" > > [OK] <-- button to close message window > > > > I get this runtime error, on line 2708 of LResources > > > > What do I need to do to remove these errors?!? Do I need to > upgrade my > > version of Lazarus?!? If so, how do I do this? > > The version information was added with 0.9.25. <http://0.9.25.> > The 0.9.24 does not know the > property. > It means you created/edited the form with a 0.9.25 IDE and opened > them in a > 0.9.24 IDE. > To use a 0.9.24 IDE you must remove the LCLVersion line from the > lfm files. > > > Mattias It should be better to have a config option: (X) Add version info to all LFM (default) ( ) Add version info to new LFM ( ) Do not add version info to LFM files

It is not an option!
The same would happen if we had published a property in SVN.

Marc

Reply by email

Marco van de Voort
to Mattias Gärtner: An embedded and charset-unspecified text was scrubbed... Name: not available Url:…
Mattias G?rtner wrote 8 lines
> What do I need to do to remove these errors?!? Do I need to upgrade my > version of Lazarus?!? If so, how do I do this? The version information was added with 0.9.25. The 0.9.24 does not know the property. It means you created/edited the form with a 0.9.25 IDE and opened them in a 0.9.24 IDE. To use a 0.9.24 IDE you must remove the LCLVersion line from the lfm files.

And strictly speaking, the fact that forms are not forward compatible is of course Delphi compatibility :-)

Reply by email

Reenen Laurie
to Mattias Gärtner: An embedded and charset-unspecified text was scrubbed... Name: not available Url:…

I agree that it is definitely a good attribute to have. It's just a little bit irritating at the moment. But it will all be ironed out if 0.9.26 ships. Then we can just say, Upgrade! :-)

Mattias G?rtner wrote 41 lines
Zitat von Reenen Laurie : > I've found the LCL Version thing too... And it frustrates me... Because I > have one PC I have SVN on, and one old 0.9.24 version. If I want to edit a > project after I've worked on the SVN, I've got to reopen all my .lfm's and > remove it. See here: http://wiki.lazarus.freepascal.org/Lazarus_0.9.26_release_notes#LCL_major_changes There are some tipps how to use newer forms on old IDE's. > Can we make that it doesn't add it to EXISTING forms, and only add it to new > forms? No. Because: It can only be omitted if no component class was used on the form, that added/renamed/deleted/changed its published properties between your old IDE version and your new IDE version. But to find this out, you need the version number, which is contradictory. I know that the LCLVersion creates a break for something that it wants to fix. But for all future versions 0.9.26,28,... it will help to reduce the problems of changed properties. Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080808/c08c3159/attachment.html

Reply by email

Peter Williams
to Mattias Gärtner: An embedded and charset-unspecified text was scrubbed... Name: not available Url:…

Hi Mattias,

I've just spent about 2 hours (approx or even more!!!) using Lazarus to try to sort out this problem!

I think that a major problem (for me anyway!) is that I don't understand the concepts of the difference between "Lazarus project (*.lpi)" and "Lazarus Project source (*.lpr)". In my confusion I've actually created BOTH in the same folder and using the same units and forms and resources. THIS IS A NIGHTMARE!!!! { But I'm trying to smile about it }

Can someone please or .lpr file(s) and help me to compile and run them?!? E.g. I would like to send them as an attachment to a person who would be kind enough to help me sort out this f*cking mess!!!

Mattias, in the past has been kind enough to receive the files as an attachment... and I would be happy if he would like to do that again. HINT HINT ;-)))

This is really not very good for my mental health... and I have schizophrenia and take medication regularly (and that really works well... at least most of the time)... What I'm saying it that sometime having a programming issue like this can drive me off the deep end! :-( Computing and programming are just hobbies for me. I use Lazarus because I come from a background where I used to use M$ Windowz and Delphi 5 and 7... And Lazarus appeals to me because it's sort-of a Delphi clone. (Now I've given M$ Windowz the flick and my desktop pc is totally Linux Kubuntu -- and its a very good and recent machine e.g. good specs!)

And I think I'll stop this message here.

Best Wishes and Hoping that someone will take pity on me and decide to help me Fond Regards,
PEW
from Hobart, Tassie, 'Down Under'

2008/8/8 Mattias G?rtner :

Show quoted text 33 lines
Zitat von Reenen Laurie : > I've found the LCL Version thing too... And it frustrates me... Because I > have one PC I have SVN on, and one old 0.9.24 version. If I want to edit a > project after I've worked on the SVN, I've got to reopen all my .lfm's and > remove it. See here: http://wiki.lazarus.freepascal.org/Lazarus_0.9.26_release_notes#LCL_major_changes There are some tipps how to use newer forms on old IDE's. > Can we make that it doesn't add it to EXISTING forms, and only add it to new > forms? No. Because: It can only be omitted if no component class was used on the form, that added/renamed/deleted/changed its published properties between your old IDE version and your new IDE version. But to find this out, you need the version number, which is contradictory. I know that the LCLVersion creates a break for something that it wants to fix. But for all future versions 0.9.26,28,... it will help to reduce the problems of changed properties. Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Fond Regards, Peter Eric (aka 'pew') WILLIAMS My free website is: http://pewtas.googlepages.com (or) http://tinyurl.com/yuyejs (please visit my free website and let me know what you think about it.)

Reply by email

Mattias Gaertner
to Peter Williams
Show quoted text 11 lines
Hi Mattias, I've just spent about 2 hours (approx or even more!!!) using Lazarus to try to sort out this problem! I think that a major problem (for me anyway!) is that I don't understand the concepts of the difference between "Lazarus project (*.lpi)" and "Lazarus Project source (*.lpr)". In my confusion I've actually created BOTH in the same folder and using the same units and forms and resources. THIS IS A NIGHTMARE!!!! { But I'm trying to smile about it }

Maybe this helps:
http://wiki.lazarus.freepascal.org/Lazarus_For_Delphi_Users#Projects

Show quoted text 8 lines
Can someone please or .lpr file(s) and help me to compile and run them?!? E.g. I would like to send them as an attachment to a person who would be kind enough to help me sort out this f*cking mess!!! Mattias, in the past has been kind enough to receive the files as an attachment... and I would be happy if he would like to do that again. HINT HINT ;-)))

The files you sent worked for me.

[...]

Mattias

Reply by email