[fpc-pascal] Pascal Language Server
Arjan Adriaanse
arjan at adriaan.se
Fri Apr 24 11:25:59 CEST 2020
Indeed with the current way JSON streaming is handled, optional values
are not considered. This needs more work and the issue is tracked
here https://github.com/arjanadriaanse/pascal-language-server/issues/7
[1].
Regards,
Arjan
[1] https://github.com/arjanadriaanse/pascal-language-server/issues/7
On Fri, 24 Apr 2020 16:10:47 +0700
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> > On Apr 24, 2020, at 3:59 PM, Arjan Adriaanse <arjan at adriaan.se>
> > wrote:
> >
> > FPCDIR="/usr/lib/fpc/3.2.0/source"
> > LAZARUSDIR="/usr/share/lazarus"
>
> I see now! I didn't know that but it's easy to document once we get
> that far.
>
> btw, I'm having a problem with the fact that published un-set
> properties are being set with null values. Some of the fields are
> marked as optional in the protocol and returning a NULL value could
> be an error which crashes the client. I don't have much experience
> with streaming RTTI so I don't know how to resolve this.
>
> For example this "documentation" property will always be set to null
> but really what want is to omit the key entirely.
>
> published
> property documentation: TMarkupContent read fDocumentation write
> fDocumentation;
>
>
> Regards,
> Ryan Joseph
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200424/c8f663c0/attachment.sig>
More information about the fpc-pascal
mailing list