[Lazarus] TCodeTools not working correctly.

Raymond van Venetiƫ rayvanve at hotmail.com
Mon Dec 8 15:24:39 CET 2008


> 
> Can you try to add a line
> 
>   CodeToolBoss.SimpleInit(ConfigFilename);
>   writeln('IncPath=',CodeToolBoss.GetIncludePathForDirectory('C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win32'));
> 
> What is IncPath for you?

With last rev, I get the following output (including that writeln):

C:\lazarus\components\codetools\examples>getcontext
TCodeToolManager.SimpleInit Config=codetools.config
TCodeToolManager.SimpleInit PP=C:\FPC\2.2.2\bin\i386-win32\fpc.exe FPCDIR=C:\FPC\fpcbuild-2.2.2\fpcsrc LAZARUSDIR=C:\lazarus FPCTARGET=win32
IncPath=;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\objpas\;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\objpas\sysutils;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\objpas\classes;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\inc\;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\inc\graph\;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win\;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win32\;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win32\;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win32\i386;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\i386\;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win32\i386\;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win32\wininc;C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win32\i386\;C:\FPC\fpcbuild-2.2.2\fpcsrcrtl\win\wininc;C:\FPC\fpcbuild-2.2.2\fpcsrcrtl\win;C:\FPC\fpcbuild-2.2.2\fpcsrcrtl\freebsd
### TCodeToolManager.HandleException: "include file not found "base.inc"" at Lin
e=33 Col=5 in "C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win32\windows.pp"
Contexts not found: include file not found "base.inc"

When I Find the base.inc in the IDE, it turns out to be this path: C:\FPC\fpcbuild-2.2.2\fpcsrc\rtl\win\wininc\base.inc

But as you can see, that path isn't in the IncPath..

Raymond
> 
> Mattias
> 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

_________________________________________________________________
Download de nieuwste emoticons voor in je Messenger
http://www.msnmessengerexperience.nl/chuck/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20081208/1ceb3989/attachment-0007.html>


More information about the Lazarus mailing list