castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
423 stars 25 forks source link

[ArgumentError] marshal data is too short #170

Closed ankitsny closed 4 years ago

ankitsny commented 4 years ago

Tried to start the language server but getting [ArgumentError] marshal data is too short and [ArgumentError] marshal data too short alert.

Error Log

[Error - 4:00:39 PM] Server initialization failed.
  Message: [ArgumentError] marshal data too short
  Code: -32603 
castwide commented 4 years ago

You might have a bad cache. Try running solargraph clear.

castwide commented 4 years ago

Gem version 0.39.3 handles cache errors more gracefully.

ankitsny commented 4 years ago

Yes, it's working now, but autofix is not working. Tried with rubocop but no luck.

Could you please help me setup vs code for ruby development, I'm little confused with which extension to install, there are many extension but don't know which will work properly. If I installed multiple extension then they may not be compatible.

What all extension should I install apart from ruby-solargraph

On Tue, 28 Apr, 2020, 18:01 Fred Snyder, notifications@github.com wrote:

Gem version 0.39.3 handles cache errors more gracefully.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/castwide/vscode-solargraph/issues/170#issuecomment-620575625, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBIFESWFVOQEKA5NBG2P63RO3ECVANCNFSM4MSWRD7Q .

castwide commented 4 years ago

Solargraph doesn't currently support format on type or quick fixes, but it uses RuboCop for format on save and the Format Document command.

I don't know of any specific conflicts with other extensions. The other Ruby extensions I use frequently are rebornix.Ruby and castwide.ruby-debug (the latter of which is also mine). Both work fine with Solargraph.