> On May 11, 2020, at 6:41 PM, Mattias Gaertner via fpc-pascal
> wrote:
>
> This creates a node for directory Path. Path should be your program
> directory.
>
>
>> UnitPathTemplate := TDefineTemplate.Create('???','???',
>>UnitPathMacroName,
>>
On Mon, 11 May 2020 16:58:54 +0700
Ryan Joseph via fpc-pascal wrote:
>[...]
> If I just want to add unit search paths do I do this? The user is
> just going to supply absolute paths to the language server (just like
> they would from the command line).
FPC is happy with ppu files. Codetools
On Mon, May 11, 2020 at 9:30 AM Michael Van Canneyt
wrote:
> You are correct. The unit is compiled in fpc mode, which means no "result"
> variable, no out param (replace with var).
>
> We can envision changing this mode, but then the whole unit needs to be
> verified and checked for correct
> On May 11, 2020, at 4:55 PM, Mattias Gaertner via fpc-pascal
> wrote:
>
> Yes, you can.
> They are treated like global options, i.e. as if added to the fpc.cfg.
Then I don't understand why those affect FindReferences but worked for other
areas. Using those were easier than what I'm doing
> On May 11, 2020, at 10:56 AM, Ryan Joseph wrote:
>
> Ok, I'll move to this. What are the FPC options for then? I thought I could
> do things like -Fu and -d with it.
>
> Are include paths and unit paths the same? I just see TDefineTemplate which
> seems to do both.
Removing the
On Mon, 11 May 2020 10:56:32 +0700
Ryan Joseph via fpc-pascal wrote:
> > On May 10, 2020, at 4:47 PM, Mattias Gaertner via fpc-pascal
> > wrote:
> >
> > TDefineTemplates.
> > see for example
> > lazarus/components/codetools/examples/setincludepath.pas
> >
>
> Ok, I'll move to this. What
On 11/05/20 7:29 pm, Michael Van Canneyt wrote:
On Mon, 11 May 2020, Noel Duffy via fpc-pascal wrote:
Example error messages:
sockets.inc(497,5) Error: Identifier not found "Result"
sockets.inc(510,53) Fatal: Syntax error, ":" expected but "identifier
RES" found
for this definition:
On Mon, 11 May 2020, Noel Duffy via fpc-pascal wrote:
I've been beavering away at a fix for
https://bugs.freepascal.org/view.php?id=37013 and I've run into
something unexpected. When I try to build rtl-extra with my proposed
patch applied, I get compiler errors for things like the use of
I've been beavering away at a fix for
https://bugs.freepascal.org/view.php?id=37013 and I've run into
something unexpected. When I try to build rtl-extra with my proposed
patch applied, I get compiler errors for things like the use of result
variables and var/out variables. I'm so used to