-
Notifications
You must be signed in to change notification settings - Fork 93
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
Unexpected empty results from textDocument/formatting
request
#422
Comments
…as is now obvious :-) from the above, my client was failing to wrap the format parameters in an |
If you run |
@randy3k Thanks for the tip, that is very helpful. Does (or could) the server honor the |
It seems to be a new setting in LSP 3.16, of course, we are happy to honor that. |
I'm working on a new LSP client, and I've found a case in which the R language server appears to incorrectly(?) return an empty array of textEdits in response to a
textDocument/formatting
request.In the attached example file, the linter reports many cases of incorrect formatting; however, sending
textDocument/formatting
for the document results in an empty array of textEdits in the reply, and no error reported by the server.The parameters to the
textDocument/formatting
request look like this:There don't appear to be any other diagnostics or logging reported by the server; it's started using the command:
R --slave -e languageserver::run()
. Are there any other flags I can add to the command line that might add verbose logging output to stderr?random.r.zip
The text was updated successfully, but these errors were encountered: