Sign in Join

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

Mailing lists / lazarus / 2013-04

Lazarus doesn't rebuild LCL if I change some include file

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Bart

Hi,

Lazarus stopped to rebuild the LCL if I change an includefile (that belongs to the LCL).

Okay, that's not totally honest.
I changed an LCL file to use an include file.
If I change the main unitfile it rebuilds.
If i change the include it doesn't.

(Took me a while to figure that out)

Is this expected behaviour, as in: you need to rebuild Lazarus so it recognizes the includefile-changes?

I did not test this, because my changes may make the IDE unusable. I wanted to thorougly test them in a separate app, before exposing my IDE to the havoc I may have created....

Bart

Reply by email

Jesus Reyes
to Bart

--- El s?b 13-abr-13, Bart escribi?:

Show quoted text 20 lines
De: Bart Asunto: [Lazarus] Lazarus doesn't rebuild LCL if I change some include file A: "Lazarus mailing list" Fecha: s?bado, 13 de abril de 2013, 10:34 Hi, Lazarus stopped to rebuild the LCL if I change an includefile (that belongs to the LCL). Okay, that's not totally honest. I changed an LCL file to use an include file. If I change the main unitfile it rebuilds. If i change the include it doesn't. (Took me a while to figure that out) Is this expected behaviour, as in: you need to rebuild Lazarus so it recognizes the includefile-changes?

Is the include file part of the LCL package?, it seems the IDE monitors files that are included in the package, if it's not included, it's not monitored.

Jesus Reyes A.

Reply by email

Bart
to Jesus Reyes: --- El s?b 13-abr-13, Bart escribi?: Is the include file part of the LCL package?, it…
Jesus Reyes wrote
Is the include file part of the LCL package?, it seems the IDE monitors files that are included in the package, if it's not included, it's not monitored.

Does this mean that I have to manually add the 3 new includefiles (for LazFileUtils.pas) in the LCL package, or will this happe automagically if I rebuild the IDE?

If I have to add them manually, how do I do that?

Bart

Reply by email

Mattias Gaertner
to Bart
Show quoted text 11 lines
On 4/13/13, Jesus Reyes wrote: > Is the include file part of the LCL package?, it seems the IDE monitors > files that are included in the package, if it's not included, it's not > monitored. Does this mean that I have to manually add the 3 new includefiles (for LazFileUtils.pas) in the LCL package, or will this happe automagically if I rebuild the IDE? If I have to add them manually, how do I do that?

You have to add them manually.
Open the package, click on Add / Add Files
Click on the button "Add Files", select the 3 new files. Click on the button "Add files to package".

It's on my todo list to add a quick dialog that shows probably missing files.

Mattias

Reply by email

Bart
to Mattias Gaertner
Mattias Gaertner wrote
You have to add them manually.

Thanks for verifying I had to add them myself.

Open the package, click on Add / Add Files Click on the button "Add Files", select the 3 new files. Click on the button "Add files to package".

Sometimes Lazarus is so easy. I just found that out myself.

Moving up the newly added files to a logical place in the tree (nicely under winlazfileutils.pas) required too many clicks on a speedbutton IMO.

Bart

Reply by email

Mattias Gaertner
to Bart
Show quoted text 15 lines
On 4/14/13, Mattias Gaertner wrote: > You have to add them manually. Thanks for verifying I had to add them myself. > Open the package, click on Add / Add Files > Click on the button "Add Files", select the 3 new files. > Click on the button "Add files to package". Sometimes Lazarus is so easy. I just found that out myself. Moving up the newly added files to a logical place in the tree (nicely under winlazfileutils.pas) required too many clicks on a speedbutton IMO.

You can sort the files alphabetically.

Mattias

Reply by email

Bart
to Mattias Gaertner
Mattias Gaertner wrote
You can sort the files alphabetically.

Which would not produce the results I wanted.
But then anagai, it probably doesn't matter how they are (un)sorted.

It would have been nice, if holding down the speedbutton with the up-arrow would keep on moving the selected issue up, until the button is released.
But I agree, it is kind of nitpicking and has extremely low priority.

Bart

Reply by email