[fpc-pascal] Pascal Language Server

Joost van der Sluis joost at cnoc.nl
Sat Apr 25 11:42:55 CEST 2020


Op 25-04-2020 om 05:53 schreef Ryan Joseph via fpc-pascal
> In the FPC streaming system with published properties, what type do I use for an array of strings? I've tried TStringList and TCollection but they give me errors like:
> 
> :: <~~ pascal-language-server 1: {'message': ' : Unsupported JSON type for object property: "jtArray"', 'code': -32603}
> 
> 
> "initializationOptions" is a JSON array of strings, i.e. 'initializationOptions': ['-Fu/path/to']

As I said before, the Cerialization-library is written with this kind of 
use-cases in mind. (https://gitlab.freepascal.org/Joost/cerialization)

Although that what you want should be possible with the default 
libraries using TStringList and some events...

Regards.

Joost.


More information about the fpc-pascal mailing list