Skip to content
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

Incomplete textDocument/didSave implementation #3923

Closed
Rubonnek opened this issue Sep 30, 2021 · 0 comments · Fixed by #3925
Closed

Incomplete textDocument/didSave implementation #3923

Rubonnek opened this issue Sep 30, 2021 · 0 comments · Fixed by #3925
Labels

Comments

@Rubonnek
Copy link
Contributor

Rubonnek commented Sep 30, 2021

Information

VIM version
NVIM v0.6.0-dev+141-gaa07d06bf
Build type: RelWithDebInfo

Operating System: Arch Linux

What went wrong

Connecting ALE as an LSP client to Godot Game Engine would occasionally crash the engine. After the bug was fixed on the engine, it was discovered that the textDocument/didSave implementation within ALE is missing several fields in the message.

Reproducing the bug

ALE has an incomplete LSP implementation of textDocument/didSave.

See:

function! ale#lsp#message#DidSave(buffer) abort
return [1, 'textDocument/didSave', {
\ 'textDocument': {
\ 'uri': ale#path#ToURI(expand('#' . a:buffer . ':p')),
\ },
\}]
endfunction

Which is missing the file contents, and possibly other fields according to the official LSP specification.

See godotengine/godot#53261 (comment) for more information.

:ALEInfo

N/A

@Rubonnek Rubonnek added the bug label Sep 30, 2021
@Rubonnek Rubonnek changed the title Missing Faulty textDocument/didSave implementation Sep 30, 2021
@Rubonnek Rubonnek changed the title Faulty textDocument/didSave implementation Incomplete textDocument/didSave implementation Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant