Sign in Join

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

Mailing lists / lazarus / 2009-11

Form Resource Files

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Andrew Brunner

Presently I have form resource files unversioned in my repository. I'm realizing that Lazarus won't create the files automatically if not present and forces me to open the unit viewing the form, moving it, and saving - to force Lazarus to stream the *.lrs resource file.

I'm wanting to report this as a flaw. Any feedback?

Reply by email

Mattias Gaertner
to Andrew Brunner
Presently I have form resource files unversioned in my repository. I'm realizing that Lazarus won't create the files automatically if not present and forces me to open the unit viewing the form, moving it, and saving - to force Lazarus to stream the *.lrs resource file.

It auto creates the lrs files only for the units listed in the project inspector (or package editor).

Maybe you forgot to add a unit to the project?

I'm wanting to report this as a flaw. Any feedback?

Mattias

Reply by email

Andrew Brunner
to Mattias Gaertner

The form units are not listed in the path but are used by other units somewhere down the line in the dependencies. I don't want to have to add the forms to the project. I don't see a point in adding forms that have no form variable to the project either. I often delete the form variable because I know the application will never have to create it. Rather instances are created on the fly.

If I have to add the form units of course I can - but I think I would consider this a flaw. IMO - Lazarus should create the resource file if it needs to. I notice that (at least as far as I can tell) the resource files are being created in the build output folder and not in the same location ans the form file.

But thanks for the work-around to the issue. Do you think I should still submit it or was this design intentional due to complexities?

Mattias Gaertner wrote 24 lines
On Fri, 20 Nov 2009 21:14:53 -0600 Andrew Brunner wrote: > Presently I have form resource files unversioned in my repository. > I'm realizing that Lazarus won't create the files automatically if not > present and forces me to open the unit viewing the form, moving it, > and saving - to force Lazarus to stream the *.lrs resource file. It auto creates the lrs files only for the units listed in the project inspector (or package editor). Maybe you forgot to add a unit to the project? > I'm wanting to report this as a flaw. ?Any feedback? Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Andrew Brunner
Show quoted text 6 lines
The form units are not listed in the path but are used by other units somewhere down the line in the dependencies. I don't want to have to add the forms to the project. I don't see a point in adding forms that have no form variable to the project either. I often delete the form variable because I know the application will never have to create it. Rather instances are created on the fly.

?
Maybe there is a misunderstanding.
Add a unit to the project adding forms to the "Auto-create forms"

The project inspector contains all files that belong to the project, that means they do not belong to a package or FPC or another project.

Show quoted text 5 lines
If I have to add the form units of course I can - but I think I would consider this a flaw. IMO - Lazarus should create the resource file if it needs to. I notice that (at least as far as I can tell) the resource files are being created in the build output folder and not in the same location ans the form file.

Yes. Since 0.9.27.
For backward compatibility you can store the lrs files in the same directory as the lfm file. Then the IDE will update that one.

But thanks for the work-around to the issue. Do you think I should still submit it or was this design intentional due to complexities?

I can't follow you, why this is a flaw.
I think it is pretty important to control what files the IDE process and what files it should *not* process.

Mattias

Reply by email