Recent

Author Topic: Problem saving new project on lazarus 2.2.2  (Read 645 times)

BSaidus

  • Sr. Member
  • ****
  • Posts: 414
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Problem saving new project on lazarus 2.2.2
« on: May 27, 2022, 10:06:04 am »
Hello.
I used fpcupdeluxe to download and build lazarus 2.2.2 and installed the lazarus.
After starting, I added some components from Components directory by adding theme ( enabling ).
Recompiled lazarus and it start well.
But After creating new project and trying to save it, the .lpr and .pas files saves normaly but the .lfm doesn't.
It give me a message :
Code: [Select]
Unable to stream Form1:TForm1
Abstract methode called.

I downloaded the source of lazarus from sourgeforge and replace the previous one, the situation is the same.
I deleted some packages from it but still the problem.

So ... what happend ??  :o


lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

rvk

  • Hero Member
  • *****
  • Posts: 4676
Re: Problem saving new project on lazarus 2.2.2
« Reply #1 on: May 27, 2022, 11:00:46 am »
After starting, I added some components from Components directory by adding theme ( enabling ).
"Some components" ???

Try a clean install without those components and see if you get the error.
When you don't get the error, add the components one by one (trying again to compile) to see which is the component that gives you trouble.

Any special reason you used fpcdeluxe instead of the official install for v2.2.2?

BSaidus

  • Sr. Member
  • ****
  • Posts: 414
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: Problem saving new project on lazarus 2.2.2
« Reply #2 on: May 27, 2022, 11:32:27 am »
Any special reason you used fpcdeluxe instead of the official install for v2.2.2?
Hello.
Thanks for the advice, indeed the package who make problems is  :
Code: [Select]
    .\lazarus\examples\xmlresource\  { xmlresource }
Now it works well.

The reason for using fpcupdeluxe is to compile the cross compiler for Linux & BSD, unless you have a technique or some batch file to do the work  :D.

Thanks you.
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

rvk

  • Hero Member
  • *****
  • Posts: 4676
Re: Problem saving new project on lazarus 2.2.2
« Reply #3 on: May 27, 2022, 01:00:40 pm »
Thanks for the advice, indeed the package who make problems is  :
Code: [Select]
    .\lazarus\examples\xmlresource\  { xmlresource }
Now it works well.
I didn't have xmlresource as example in my trunk install but I did in the standard Laz222 install.
xmlresource indeed seems to have a big problem and makes Lazarus ide unusable.
Not sure why you would need it though.

The reason for using fpcupdeluxe is to compile the cross compiler for Linux & BSD, unless you have a technique or some batch file to do the work  :D.
Yes, for an install with cross compile, fpcdeluxe is the easiest choice.

(I prefer to always compile on native platform)

Edit: Yeah, looking at that xmlresource example, that's NOT one you want to use in your own program.
It's just an example how to change the way Lazarus saves its LFM forms.

Quote
Example package on how to register another resource-format into the Lazarus IDE. With this package the IDE is able to stream forms to an xml-format, instead of the usual lfm format.

So, it's probably not compatible anymore with the current versions.
« Last Edit: May 27, 2022, 01:48:46 pm by rvk »

BSaidus

  • Sr. Member
  • ****
  • Posts: 414
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: Problem saving new project on lazarus 2.2.2
« Reply #4 on: May 28, 2022, 11:33:41 am »
Hi @rvk
I have a prictice to install and test all what come with a new version of lazarus.
this package I do not need it (xmlresource) so I installed it only to see .

Me too I prefere to compile in a native plateform, but for tests I do this.

Thank you . 
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

wp

  • Hero Member
  • *****
  • Posts: 9734
Re: Problem saving new project on lazarus 2.2.2
« Reply #5 on: May 28, 2022, 12:50:46 pm »
Filed a bugreport about the xmlresource issue: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39776
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

bobby100

  • Jr. Member
  • **
  • Posts: 91
    • Malzilla
Re: Problem saving new project on lazarus 2.2.2
« Reply #6 on: May 29, 2022, 08:37:34 pm »
Probably unrelated, but I have had the same problem with some older versions of Lazarus (0.9.x) on Windows 7 64bit.
If I created an empty lfm file - the project could be saved after that. It was just so that Lazarus couldn't create the file, or it has expected that the file already exists.
https://gitlab.com/bobby100 - my Lazarus components and units
https://sourceforge.net/u/boban_spasic/profile/ - my open source apps

https://malzilla.org/ - remainder at my previous life as a web security expert

 

TinyPortal © 2005-2018