I found out that setting TCodeToolsOptions.FPCOptions (-Fu and -Fi) was doing 
something because it helped FindDeclaration to search for units not in the same 
same directory as the main program. However now I've encountered problems with 
FindReferences (the example Mattias made for me) which seem to be caused by the 
inclusion of FPCOptions (if I remove the FPC options it properly builds the 
unit search graph).

reading on https://wiki.lazarus.freepascal.org/Codetools it sounds like I need 
to be using TDefineTemplate to add unit search paths. Which is the correct way 
to do this?


Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to