Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gem with slash name cannot be found #685

Open
4zv4l opened this issue Sep 21, 2023 · 1 comment
Open

gem with slash name cannot be found #685

4zv4l opened this issue Sep 21, 2023 · 1 comment

Comments

@4zv4l
Copy link

4zv4l commented Sep 21, 2023

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
Copy link
Owner

castwide commented Nov 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants