[Lazarus] Runtime package (manual compilation only) forced to re-compile by a design time dependant package?

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Apr 19 21:31:22 CEST 2013


On Fri, 19 Apr 2013 16:49:06 +0300
patspiper <patspiper at gmail.com> wrote:

> On 17/04/13 18:32, Mattias Gaertner wrote:
> 
> > Yes, it was more a reflex than a well thought answer.
> > Manually compiled packages do not follow the recommendations. So I
> > guess it will be hard to write an analyzer that gives the right
> > advice.
> > For packages that share source directories the advice is easy, but
> > maybe not pleasant.
> I would suggest checking the package and perhaps projects as well 
> against bad practices, and warn accordingly. the below is an initial 
> list that I could think of:
> - If the package is marked as anything other than 'rebuild automatically'
> - If the package or project share the same folder as a required package
> - If the package uses units or include files that are not included 
> explicitly in the package. This is because any change to such code 
> should trigger the need for recompilation. Unlisted code files are not 
> checked as far as I understand.

Yes.

 
> >> Hence, the cycle was to inspect IDE internals, rebuild the
> >> IDE, and check the messages window. So I had an insight on what was
> >> supposed to be recompiled and most importantly why, and compared that
> >> with the actual compilation.
> >>> You can see in the stdout log, why something was compiled.
> >> I believe the terminal (from which I launch startlazarus) is incapable
> >> of buffering so many lines. Are you referring to that terminal log, or
> >> to piping the output to a log file?
> > You can pass --debug-log=log.txt as parameter.
> I have that already as an option in my Lazarus launch script, but it 
> requires a re-launch of the IDE. I use it for extreme cases.
> > Or use a better terminal. ;)
> I use the Ubuntu default Gnome Terminal, and have just discovered (now) 
> that its history capacity is configurable! Anyway, what terminal flavour 
> do you recommend?

Gnome Terminal is ok. The default should be enough to see the last few
thousand lines.


Mattias




More information about the Lazarus mailing list