castwide / solargraph

A Ruby language server.
https://solargraph.org
MIT License
1.87k stars 154 forks source link

gem with slash name cannot be found #685

Open 4zv4l opened 9 months ago

4zv4l commented 9 months ago

when I try to load net/ssh solargraph doesnt find it but my script works (no completion when writing in neovim) but when I use net-ssh the completion works but my script doesnt work (cannot find net-ssh)

I didnt do much configuration, my lspconfig in neovim is just lspconfig.solargraph.setup{}

begin
  require 'net-ssh'
rescue LoadError
  send :require, 'net/ssh'
end

the workaround to get both to work is this but its not the best

I install gems locally (local user and not for the whole system), would that cause the issue ?

castwide commented 8 months ago

This is a limitation in how paths get mapped to gems. I'll work on a fix for the next release.