Skip to content

gdscript language server causes panic #7466

Closed Answered by the-mikedavis
schme asked this question in Troubleshooting
Discussion options

You must be logged in to vote

The gdscript language server is breaking the spec around initialization: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initialize

... the server is not allowed to send any requests or notifications to the client until it has responded with an InitializeResult ...

We send the initialize request and before the server responds by sending the InitializeResult, it sends a textDocument/publishDiagnostics notification. We need the InitializeResult before publicDiagnostic because we need to know its position encoding to be able to translate the positions in the publicDiagnostic notification.

The relevant lines of the logfile:

2023-06-27T11:07:45.224…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by schme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-server Area: Language server client
2 participants
Converted from issue

This discussion was converted from issue #7465 on June 27, 2023 13:34.