On Fri, 24 Apr 2020 10:59:21 +0200 Arjan Adriaanse <ar...@adriaan.se> wrote:
> The options for initializing CodeToolsBoss are passed through > environment variables as described at > https://wiki.lazarus.freepascal.org/Codetools [1]. > > For example, mine are set up as follows through the Emacs client > settings. > > FPCDIR="/usr/lib/fpc/3.2.0/source" > LAZARUSDIR="/usr/share/lazarus" > > However, specifying the Lazarus source path does not seem to suffice > to find the units of a component like CodeTools. Therefore I would > recommend testing on simple code without many dependencies for now. The LAZARUSDIR merely sets a macro. There is no currently no code in codetools that scans Lazarus packages. In Short: You can omit LAZARUSDIR. Setting PP might be useful. You can add unit and include paths: https://wiki.freepascal.org/Codetools#Defining_search_paths_and_macros Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal