castwide / vscode-solargraph

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

Failing to find Solargraph gem with Fish Shell installed #85

Closed richjdsmith closed 6 years ago

richjdsmith commented 6 years ago

Using VSCode Version 1.29, on macOS 10.12.6 and have Solargraph listed in Gem List (solargraph (0.28.4, 0.28.3, 0.28.2, 0.28.1, 0.28.0, 0.26.1, 0.24.1, 0.23.5, 0.23.3, 0.23.2, 0.22.0))

The only thing that changed is I installed the Fish Shell yesterday.

richjdsmith commented 6 years ago

Running $solargraph -v on the VSCode integrated shell results in 0.28.4

richjdsmith commented 6 years ago

Tried to add the result from which solargraph to my solargraph.commandPath as /Users/richsmith/.rvm/gems/ruby-2.5.1/bin/solargraph

Closed and reponed VScode, result is now a simple error message of Failed to start Solargraph: with an empty result

richjdsmith commented 6 years ago

Checked developer tools. Turns out Fish Shell breaks everything ruby related 😕

Not this plugins fault or issue. Closing this issue as it is not relevant.

jcat4 commented 5 years ago

Just wanted to say, in case anyone else wants to start playing with ruby but does NOT want to give up their precious fish shell 😍, my solution was:

(I'm on a Mac)

Logout and log back in, and it should all work!

P.S. I believe there's a command you can use to get stuff working without a logout/restart, but I can't remember it. :^)