neoclide / coc-solargraph

Solargraph extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to start Solargraph: Required ruby-2.6.6 is not installed.

otavioschwanck opened this issue · comments

In my macbook, works perfectly, i have a not with linux and shows:

Required ruby-2.6.6 is not installed.
To install do: 'rvm install "ruby-2.6.6"'
/home/yasminvalin/.rbenv/versions/2.6.6/lib/ruby/2.6.0/rubygems.rb:283:in find_spec_for_exe': can't find gem solargraph (>= 0.a) with executable solargraph (Gem::GemNotFoun dException) from /home/yasminvalin/.rbenv/versions/2.6.6/lib/ruby/2.6.0/rubygems.rb:302:in activate_bin_path'
from /home/yasminvalin/.rbenv/versions/2.6.6/bin/solargraph:23:in `

'

I switch to nvim_lspconfig to test, and works perfectly, but, i prefer CoC over lspconfig 1000x times.

My .zshrc have the rbenv stuff.
ruby --version returns 2.6.0
solargraph is available on the PATH

Seems you need configure "solargraph.commandPath"

Configured to where is on rbenv (using which solargraph), same results

configured to where is on rbenv (using which solargraph), same results

the strange part is that with nvim_lspconfig works without any tweak. the solargraph asks
to install ruby 2.6.6 with rvm (that is strange, im using rbenv). ruby 2.6.6 is installed too.

anything i could do to help you debug this?