Sign in Join

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

Mailing lists / lazarus / 2012-11

lrs files

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Antonio Fortuny

Hi guys.

I have some trouble with lrs files generated by Lazarus from forms (and data modules). As stated in the wiki page
http://wiki.lazarus.freepascal.org/Lazarus_Resources 'Lazarus Resource Form File', the IDE should save the resource file when I hit the save button: it dosn't.
Steps to reproduce:
1. load a project with forms the correspondes .lrs files
2. rename a form MyForm.lrs to Myform.lrs1
3. display MyForm and do a change (add an edit box)
4. save the project (Shift-Ctrl-S): no new MyForm.lrs file
5. build (Shift-F9) and save again: no new MyForm.lrs file but the two lines:
initialization

   {$I MyForm.lrs}

are still present in the unit and compiler does not complain on any error whilst, under other circumstances, the compiler grumbles about the lack of the lrs file.

Any suggestion ?

Antonio.

Mattias Gaertner
to Antonio Fortuny

Antonio Fortuny hat am 22. November 2012 um 13:25 geschrieben:

Show quoted text 22 lines
Hi guys. I have some trouble with lrs files generated by Lazarus from forms (and data modules). As stated in the wiki page http://wiki.lazarus.freepascal.org/Lazarus_Resources 'Lazarus Resource Form File', the IDE should save the resource file when I hit the save button: it dosn't. Steps to reproduce: 1. load a project with forms the correspondes .lrs files 2. rename a form MyForm.lrs to Myform.lrs1 3. display MyForm and do a change (add an edit box) 4. save the project (Shift-Ctrl-S): no new MyForm.lrs file 5. build (Shift-F9) and save again: no new MyForm.lrs file but the two lines: initialization {$I MyForm.lrs} are still present in the unit and compiler does not complain on any error whilst, under other circumstances, the compiler grumbles about the lack of the lrs file. Any suggestion ?

Have you looked into your output directory?
See Project / Options / Miscellaneous / Save lrs file in unit output directory.

Mattias

Antonio Fortuny
to Mattias Gaertner

Le 22/11/2012 13:43, Mattias Gaertner a ?crit :

Show quoted text 28 lines
Antonio Fortuny hat am 22. November 2012 um 13:25 geschrieben: > Hi guys. > > I have some trouble with lrs files generated by Lazarus from forms (and > data modules). As stated in the wiki page > http://wiki.lazarus.freepascal.org/Lazarus_Resources 'Lazarus Resource > Form File', the IDE should save the resource file when I hit the save > button: it dosn't. > > Steps to reproduce: > 1. load a project with forms the correspondes .lrs files > 2. rename a form MyForm.lrs to Myform.lrs1 > 3. display MyForm and do a change (add an edit box) > 4. save the project (Shift-Ctrl-S): no new MyForm.lrs file > 5. build (Shift-F9) and save again: no new MyForm.lrs file but the two > lines: > initialization > {$I MyForm.lrs} > are still present in the unit and compiler does not complain on any > error whilst, under other circumstances, the compiler grumbles about the > lack of the lrs file. > > Any suggestion ? Have you looked into your output directory? See Project / Options / Miscellaneous / Save lrs file in unit output directory.

I was pretty sure I missed something. Sorry, wasn't aware. Now, I am. Thanks a lot Mattias.

Antonio.

Show quoted text 10 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus