[Lazarus] Codetools can't find units in 'other sources'

Joost van der Sluis joost at cnoc.nl
Thu Nov 11 14:16:34 CET 2010


On Thu, 2010-11-04 at 23:01 +0100, Mattias Gaertner wrote:
> On Wed, 03 Nov 2010 11:24:55 +0100
> Joost van der Sluis <joost at cnoc.nl> wrote:
> 
> > On Tue, 2010-11-02 at 23:43 +0100, Mattias Gaertner wrote:
> > > On Tue, 02 Nov 2010 19:13:46 +0100
> > > Joost van der Sluis <joost at cnoc.nl> wrote:
> > > 
> > > > Hi all,
> > > > 
> > > > The Lazarus Codetools are complaining that a unit can't be found. But it
> > > > is available in the path I've given in the 'compiler-options' as 'Other
> > > > Sources'.
> > > > 
> > > > But also placing the path in 'other units /-Fu' doesn't help. Maybe
> > > > something to do with the new buildmodes?
> > > 
> > > What paths do you see in the 'Unit info'?
> > 
> > The paths added for the packages being used (ideintf, lcl and my own
> > Gecko package) and 'packager' (what is this?)

> > So, unit-info, unit paths:
> 
> For what directory?
> 
> Let's assume you did that for directory X.
> 
> > /home/svn/lazarus/ideintf/units/x86_64-linux
> > /home/svn/lazarus/lcl/units/x86_64-linux
> > /home/svn/lazarus/lcl/units/x86_64-linux/gtk2
> > /home/svn/lazarus/packager/units/x86_64-linux
> > /home/joost/.fppkg/share/doc/fpc-gecko-0.9.0-1/lazaruspackage/Components
> > 
> > include paths:
> > /home/joost/.fppkg/share/doc/fpc-gecko-0.9.0-1/lazaruspackage/Components
> > 
> > Source paths:
> > /home/joost/.fppkg/share/doc/fpc-gecko-0.9.0-1/lazaruspackage/Components
> > /home/svn/lazarus/ideintf/units/x86_64-linux
> > /home/svn/lazarus/lcl/units/x86_64-linux
> > /home/svn/lazarus/lcl/units/x86_64-linux/gtk2
> > /home/svn/lazarus/packager/units/x86_64-linux
> > /local/svn/tiOPF2-trunk/Core
> > /home/svn/lazarus/ideintf
> > /home/svn/lazarus/lcl
> > /home/svn/lazarus/lcl/widgetset
> > /home/svn/lazarus/lcl/nonwin32
> > /home/svn/lazarus/lcl/interfaces/gtk2
> > /home/svn/lazarus/packager/registration
> > 
> The directory X belongs to Y, which is a project or a package, which
> uses the LCL, IDEIntf, tiopf and fpc-gecko.

Ok, I have this problem again. (And I've heard of others with the same
issue) A somewhat different setup.

In this case the directory of the file I'm editing is the main
project-path. (In fact I'm editing the .lpr) So X belongs to the package
Y. (The package I'm editing)
 
Now the path I'm looking for is in the 'other sources' setting for
project Y: (not Z)

> > While -Fu is: (compiler options)
> > /home/svn/webdesign-trunk/geckoport/;/home/svn/webdesign-trunk/geckoport/each-version/

> I guess you mean the compiler options of your project Z.
> The Fu paths are not in the list of Y, so Z<>Y.

No, the options are for project Y. 

> The question is: What is Y?

No, question is: where is the bug?

Why is the path which is set as 'other sources' in the project-settings
not used by the codetools when I'm editing a file which belongs to the
same project.

Joost.





More information about the Lazarus mailing list