Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Hover unmarshal fails for singleton MarkedString #2

Open
fhs opened this issue Dec 2, 2018 · 0 comments
Open

Hover unmarshal fails for singleton MarkedString #2

fhs opened this issue Dec 2, 2018 · 0 comments
Assignees

Comments

@fhs
Copy link

fhs commented Dec 2, 2018

The LSP spec allows either MarkedString, []MarkedString, or MarkupContent for Hover.contents. The go-langserver sends a []MarkedString, so there is no issue there. Python-language-server however send a MarkedString and the unmarshal fails with this error:

json: cannot unmarshal string into Go struct field Hover.contents of type []lsp.MarkedString

This is part of a more general issue of how encoding/json package unmarshals slices (issue golang/go#19854).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants