castwide / vscode-solargraph

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

Not working on 10.13.5 #67

Closed shenhf closed 6 years ago

shenhf commented 6 years ago

vs Code terminal:

solargraph -v
0.22.0

vs Code Output

[Error - 14:34:30] Connection to server is erroring. Shutting down server.
[Error - 14:34:30] Connection to server is erroring. Shutting down server.

Developer Tools

[Extension Host] Solargraph is listening PORT=63819 PID=10962

/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:268 [Extension Host] Checking gem version
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:268 [Extension Host] Solargraph gem version is current

solargraph process look like started:

ps -ef|grep solargraph
  501 10962 10765   0  2:34下午 ??         0:02.48 ruby /Users/shenhf/.rvm/gems/ruby-2.4.3@rails51/bin/solargraph socket --port 0

Am i missed something? Thanks for helping.

ps. rvm used as ruby version manager.

ps -ef|grep solargraph
  501 10962 10765   0  2:34下午 ??         0:02.48 ruby /Users/shenhf/.rvm/gems/ruby-2.4.3@rails51/bin/solargraph socket --port 0
shenhf commented 6 years ago

I finally figured it out to set 127.0.0.1 localhost in hosts file.