-
Notifications
You must be signed in to change notification settings - Fork 174
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
Extra output in LSP response causes crash during formatting #2284
Comments
Hello, I'm also seeing the same issue. Here is the output from mine:
|
Thank you for the bug report! This does indeed look like a problem in the Standard addon, which seems to be printing to STDOUT. In language servers, STDIN and STDOUT are reserved for editor/server communication, which is why simply printing to STDOUT is enough to break the connection and crash the server. For RuboCop, we force the usage of the base formatter, which doesn't output anything (thus preventing it from breaking the client/server connection). cc @searls |
Looks like you're on [email protected]. This should have been fixed in 1.39.1 |
Awesome! Standard users, please upgrade to 1.39.1. |
Confirming that 1.39.1 fixes this for me. Cheers! |
I'm not using Standard so I don't know how or where to update Standard to 1.39.1. Is there a guide somewhere? |
@marcoslhc if |
Yes. About the same output with the rpc payload and complaining about
missing headers. I’m off my computer but I can provide more data later.
*Saludos…*
*Marcos Luis Hernández*
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
900 Bay Dr. #425
Miami Beach, FL. 33141
[*website*]: *http://xiryvella.com/ <http://xiryvella.com/>*
[*github*]: *https://github.com/marcoslhc* <https://github.com/marcoslhc>
[*twitter*]: @marcoslhc <http://twitter.com/marcoslhc>
[*mobile*]: +1 954 300 9924
[*info*]: *https://www.google.com/profiles/marcoslhc
<https://www.google.com/profiles/marcoslhc>*
El El jue, ago 1, 2024 a la(s) 17:36, Justin Searls <
***@***.***> escribió:
… @marcoslhc <https://github.com/marcoslhc> if standard isn't in your
Gemfile (or, if your project lacks a Gemfile) isn't installed on your
system, this shouldn't be causing a crash for you. Is it?
—
Reply to this email directly, view it on GitHub
<#2284 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3VPUFCWYCJTG7XYXSOBDZPKS5XAVCNFSM6AAAAABKVXUKPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRUGA2TCOJSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Description
Similar problem to #1723, but the setup is quite different:
I'm working on https://github.com/geoblacklight/geoblacklight, which uses standardrb as the formatter.
The LSP starts up fine and correctly detects my shell, version manager, etc. The problem only occurs when I ask it to format a file using the VSCode command palette.
Reproduction steps
Code snippet or error message
It looks like the output of rubocop is being mixed in, but:
Could this be a problem with the Standard Ruby LSP addon? I noticed that I don't encounter this problem on other projects that do use the LSP but use rubocop instead of standardrb.
The text was updated successfully, but these errors were encountered: