castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
425 stars 24 forks source link

Failed to start language server: "Could not find command 'socket'." #59

Closed athrunsun closed 6 years ago

athrunsun commented 6 years ago

Error message:

[Extension Host] Failed to start language server: "Could not find command \"socket\".\n"    /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:263

Screenshot: VSCode error screenshot

What is socket refering to here?

I got no error when I manually start language server with solargraph server on the command line.

castwide commented 6 years ago

The latest versions of the gem and extension use the language server protocol over a socket transport instead of the old web server. I recommend upgrading to gem version 0.22.0.

athrunsun commented 6 years ago

@castwide Thanks for the suggestion, I upgraded solargraph gem and it works.

BTW, do I have to specify absolute path for ruby & solargraph related configurations, like /home/xxx/.rbenv/shims/ruby? I tried ~/.rbenv/shims/ruby and $HOME/.rbenv/shims/ruby but neither of them works.

castwide commented 6 years ago

Yes, it should typically be an absolute path if you need to specify it.

athrunsun commented 6 years ago

@castwide OK, got it.