Zitat von Tobias Giesen <[EMAIL PROTECTED]>:

> Hi,
>
> OK when I add the unit to the Project, it works much better.
>
> I don't have to add all units that need to be found by CodeTools, I
> just need to add the units in which I work and from which I look for
> symbols.
>
> But still, if CodeTools could just use the main Project path even if
> it doesn't know that the file is part of the project, that would be
> nice.

Note: The codetools are much more flexible, than what the IDE allows. It is up
to the IDE to setup the codetools correctly.

The IDE uses the unit search path in the compiler options dialog as 'project
source directories'. Each source directory get the search paths and compiler
settings of the compiler options. AFAIR this was implemented already in 0.9.23.

So it should be enough to add the directories, say 'sub1;sub2' to the unit
search path of the compiler options. Then all units in the 'sub1' and the
'sub2' directories will find each other.
Note, that the source directories and search paths in the compiler options are
relative to the project directory. The project directory is the directory of
the .lpi file.

Delphi reads the .dpr file and uses the filenames of the uses section.
This is not done by Lazarus.

Mattias

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to