-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip field when it is null/none. #41
Conversation
There seems to be some discrepancy around field being ommited and null value. And null fields are breaking at least some fragile language servers. - autozimu/LanguageClient-neovim#265 - jacobdufault/cquery#247
I thought I had read it to be equivalent in microsoft/language-server-protocol#87 but re-reading that now I seem to have misread it. We should perhaps mark every optional field in the spec with I queried for more information in a related issue microsoft/language-server-protocol#355 |
In #87 they deferred the work to specific language implementation but as
far as I see it’s simply a total failure to commicate clearly how it’s
going to work in a real world of multiple language implementations.
I agree we should do all the skip serialization work, just to be safe.
…On Sun, Jan 7, 2018 at 02:33 Markus Westerlind ***@***.***> wrote:
I thought I had read it to be equivalent in
microsoft/language-server-protocol#87
<microsoft/language-server-protocol#87> but
re-reading that now I seem to have misread it. We should perhaps mark every
optional field in the spec with skip_serializing_if actually, just to be
safe 🤔 .
I queried for more information in a related issue
microsoft/language-server-protocol#355
<microsoft/language-server-protocol#355>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYt77ZZQ5TUIbklP2R5I-devhsqtVKOks5tIJ2SgaJpZM4RViXn>
.
|
Can we merge this in at the moment? The rest could be done in separate PR. Also, it would be really helpful to have the attribute applied globally instead of individual field. |
Published 0.24.0. @autozimu Would you like want merge rights/cargo publish rights? I think it might be nice to have someone else with access (also, I will be mostly unavailable this week in case you want something merged/published). |
That will be great. Thanks.
My handle on crates.io is same as github.
…On Mon, Jan 8, 2018 at 18:39 Markus Westerlind ***@***.***> wrote:
Published 0.24.0. @autozimu <https://github.com/autozimu> Would you like
want merge rights/cargo publish rights? I think it might be nice to have
someone else with access (also, I will be mostly unavailable this week in
case you want something merged/published).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYt7xXJYDxoEbeqc8k9K2k4LT16MdYFks5tItFMgaJpZM4RViXn>
.
|
Done |
Thanks |
There seems to be some discrepancy around field being ommited and null
value. And null fields are breaking at least some fragile language
servers.