Skip to content

Internal error (code -32603) on "textDocument/semanticTokens/full" request #2706

Closed Answered by 0dinD
vargonis asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! You're running into #1993. The last time I had a look at it, I noted:

But it is a bit strange that the document version is null when a DocumentMonitor is constructed for a semantic tokens request. That would either suggest a client error (such as not sending textDocument/didOpen before the semantic tokens request), or something more obscure.

Because I thought that clients were supposed to always send textDocument/didOpen before sending any other document-related requests (this seems to be how VSCode does it). But I don't know where I got that from, because now that I read the LSP specification again, I can't find any such requirement. In fact, the specification says that "a server’s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vargonis
Comment options

Answer selected by vargonis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants