[fpc-pascal] Pascal Language Server

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Apr 24 11:35:27 CEST 2020


On Fri, 24 Apr 2020 10:59:21 +0200
Arjan Adriaanse <arjan at 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



More information about the fpc-pascal mailing list