You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
While playing around with cquery support in eglot (a minimal Emacs language server library), I was having trouble getting the text document highlighting to work, I noticed that an extra member was getting appended to the documentHighlight replies:
This causes the eglot message-parsing to choke and abort the document highlight request.
From looking over the code it seems like Role is used internally for richer call trees, but it doesn't look like either the Emacs or VS Code clients use it. Is there any particular reason it was added? I've got a local patch applied to my eglot checkout that handles this, but I could see this biting future language server clients implementing cquery support down the road.
The text was updated successfully, but these errors were encountered:
Prevents an editor's language server client from choking on a JSON
RPC reply with unexpected arguments. There appear to be no current
users of this protocol extension, so removing it shouldn't cause any
regressions.
Fixes#682.
We can readd if someone notices this is missing, but I suspect there are no users. I've been trying to remove cquery extensions that are very unlikely to be added to the spec as well.
I think I broke the tests… they're probably expecting the Role to be sent in the documentHighlight reply, I'll have a PR up shortly fixing that. Nvm, seems like the failure was there before.
decimad
pushed a commit
to decimad/cquery
that referenced
this issue
Jul 13, 2018
Prevents an editor's language server client from choking on a JSON
RPC reply with unexpected arguments. There appear to be no current
users of this protocol extension, so removing it shouldn't cause any
regressions.
Fixesjacobdufault#682.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While playing around with cquery support in
eglot
(a minimal Emacs language server library), I was having trouble getting the text document highlighting to work, I noticed that an extra member was getting appended to the documentHighlight replies:This causes the eglot message-parsing to choke and abort the document highlight request.
From looking over the code it seems like
Role
is used internally for richer call trees, but it doesn't look like either the Emacs or VS Code clients use it. Is there any particular reason it was added? I've got a local patch applied to myeglot
checkout that handles this, but I could see this biting future language server clients implementing cquery support down the road.The text was updated successfully, but these errors were encountered: