Open harry-xm opened 2 weeks ago
This could be a rust-analyzer bug, but is reported here for LSP4IJ to consider special handling for ContentModified
errors.
If I understand correctly your issue the exception kind org.eclipse.lsp4j.jsonrpc.ResponseErrorException
should be reported as language server and not as LSP4IJ https://github.com/redhat-developer/lsp4ij?tab=readme-ov-file#feedback , right?
I think the error is already reported as a language server error (i.e. the second case).
The concern is whether LSP4IJ should provide the facility to silence this error and automatically retry or cancel the request.
From the LSP spec:
/**
* The server detected that the content of a document got
* modified outside normal conditions. A server should
* NOT send this error code if it detects a content change
* in it unprocessed messages. The result even computed
* on an older state might still be useful for the client.
*
* If a client decides that a result is not of any use anymore
* the client should cancel the request.
*/
export const ContentModified: integer = -32801;
Happens when I quit and reopen the IDE with a .rs file open. I did not modify any files before the error popped up.
This also happens on
textDocument/codeLens
andtextDocument/documentHighlight
.IDE information