Description
Started happening with v0.57.0
The cause seems to be cancelation requests ($/cancelRequest
) from LSP client. This basically makes v0.57.0 unusable on emacs as emacs/lsp-mode
actively cancels requests when things come out of view and results are not needed anymore or UI actions are cancelled by user directly.
I have this on my LSP trace log:
[Trace - 08:59:17 PM] Sending request 'textDocument/codeAction - (155)'.
Params: {
"textDocument": {
"uri": "file:///Users/bob/src/csharp-language-server/src/CSharpLanguageServer/Server.fs"
},
"range": {
"start": {
"line": 312,
"character": 19
},
"end": {
"line": 312,
"character": 19
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 312,
"character": 20
},
"end": {
"line": 314,
"character": 16
}
},
"severity": 1,
"code": "10",
"codeDescription": {
"href": "https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/compiler-messages/fs0010"
},
"source": "F# Compiler",
"message": "Incomplete structured construct at or before this point in expression",
"relatedInformation": []
}
]
}
}
[Trace - 08:59:17 PM] Received response 'nil - (153)' in 0ms.
Result: {
"code": -32800,
"message": "The task was cancelled."
}
[Trace - 08:59:17 PM] Sending notification '$/cancelRequest'.
Params: {
"id": 155
}
(*CRASH*)
Metadata
Metadata
Assignees
Labels
No labels
Activity