castwide / vscode-solargraph

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

Failed to start Solargraph: Could not find command "socket". #61

Closed uniedcom closed 6 years ago

uniedcom commented 6 years ago

I am getting the message listed above when launching my VSCode application.

Any ideas on how to get rid of it or fix the issue?

castwide commented 6 years ago

You probably need to update the gem. The first gem to use LSP via socket transport is 0.18.1; the current version is 0.22.0.

uniedcom commented 6 years ago

Your recommendation did not actually solve the problem. It did however start me down the path of upgrading everything.

So after upgrading Gems, my ChefDK stopped working. I then upgraded ChefDK which fixed that. However when I launched VScode I had a new error of solargraph Failed to start but with no other message or indication of what was wrong.

I then ran # gem install solargraph. This showed me what was missing. The make file g++ command not found. I then installed gcc c++ and ran the gem install solargraph command again and I no longer have any issues.

Thanks for the help.