Sign in Join

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

Mailing lists / lazarus / 2013-01

.lrs files

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Antonio Fortuny

Hi folks.

Got a problem: I have a data module in a project with some TMemDataset All of them have some fields in the FieldDefs list Now I'm changing some of the datasets but new fields appear as not existing when they are referenced somewhere else in the project. Finally I've seen that the datamodule.lrs file has not been updated since last year despite the changes I've done ! And of course the new columns are not in the datamodule.lrs file and when the new fields are referenced, program crashes

How to force the saving of the .lrs file ?
BTW, it happens some times with TForms

Antonio.

Reply by email

Mattias Gaertner
to Antonio Fortuny: Hi folks. Got a problem: I have a data module in a project with some TMemDataset All of…
Show quoted text 12 lines
Hi folks. Got a problem: I have a data module in a project with some TMemDataset All of them have some fields in the FieldDefs list Now I'm changing some of the datasets but new fields appear as not existing when they are referenced somewhere else in the project. Finally I've seen that the datamodule.lrs file has not been updated since last year despite the changes I've done ! And of course the new columns are not in the datamodule.lrs file and when the new fields are referenced, program crashes How to force the saving of the .lrs file ?

Check the project option Resource type is set to lrs. Check the file date of the lrs file or simply delete the file. The IDE will regenerate it on next build.

If this does not work:
Check that there is only one datamodule.lrs in the include path.

BTW, it happens some times with TForms

Mattias

Reply by email

Antonio Fortuny
to Mattias Gaertner

Le 23/01/2013 11:51, Mattias Gaertner a ?crit :

Check the project option Resource type is set to lrs.

Where is this located ?

Check the file date of the lrs file or simply delete the file. The IDE will regenerate it on next build.

does not work

If this does not work: Check that there is only one datamodule.lrs in the include path.

OK

Show quoted text 10 lines
> BTW, it happens some times with TForms Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antonio Fortuny
to Mattias Gaertner: On Wed, 23 Jan 2013 11:45:23 +0100 Check the project option Resource type is set to lrs.…
Check the project option Resource type is set to lrs.

Ok, found it.
The option Save .lrs files in output folder was checked too. It is unchecked now and .lrs files are rebuilt
This time I was confused because there are alittle bit too much options. But OK. It works

Thanks Mattias, your answer helped

Show quoted text 17 lines
Check the file date of the lrs file or simply delete the file. The IDE will regenerate it on next build. If this does not work: Check that there is only one datamodule.lrs in the include path. > BTW, it happens some times with TForms Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mark Morgan Lloyd
to Mattias Gaertner: On Wed, 23 Jan 2013 11:45:23 +0100 Check the project option Resource type is set to lrs.…
Mattias Gaertner wrote 19 lines
On Wed, 23 Jan 2013 11:45:23 +0100 Antonio Fortuny wrote: > Hi folks. > > Got a problem: I have a data module in a project with some TMemDataset > All of them have some fields in the FieldDefs list > Now I'm changing some of the datasets but new fields appear as not > existing when they are referenced somewhere else in the project. > Finally I've seen that the datamodule.lrs file has not been updated > since last year despite the changes I've done ! And of course the new > columns are not in the datamodule.lrs file and when the new fields are > referenced, program crashes > > How to force the saving of the .lrs file ? Check the project option Resource type is set to lrs. Check the file date of the lrs file or simply delete the file. The IDE will regenerate it on next build.

Question if I may: should .lrs files be stored in (a local) .svn repository? What about .or?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Mattias Gaertner
Mattias Gaertner wrote 14 lines
On Wed, 23 Jan 2013 11:18:04 +0000 Mark Morgan Lloyd wrote: > Mattias Gaertner wrote: > [...] > Question if I may: should .lrs files be stored in (a local) .svn > repository? It depends. If you only use Lazarus to compile the project, you don't need to store them. > What about .or? No.

Thanks Mattias, noted.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email