We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Linux Mint 21.3
3.2.1
rbenv
The extension and rubocop work well. However Rubocop complains about:
require 'net/ssh'
…with…
Required path net/ssh could not be resolved.RequireNotFound
…although I have this in my Gemfile…
gem "net-ssh", "~> 7.2"
…and my Ruby script can successfully use Net::SSH when started with "bundle exec".
When I run…
bundle exec rubocop my-script.rb
…it happily says…
1 file inspected, no offenses detected
I suspect that Rubocop may not be called as "bundle exec rubocop" and thus does not pick up the gems from my Gemfile.
The text was updated successfully, but these errors were encountered:
I just noticed that this does not happen for another gem "ipaddr" I have added through Bundler.
I wonder if there is something specific with net-ssh.
Sorry, something went wrong.
Are you sure your are actually using ruby-lsp? This error message appears to come from solargraph instead: https://github.com/castwide/solargraph/blob/d7a14bf3fefd3c82d77e1121c681cd4fb082e968/lib/solargraph/diagnostics/require_not_found.rb#L43-L51, they have an open PR for this castwide/solargraph#697
ruby-lsp
solargraph
Perhaps you got both extensions activated.
@Earlopain You are right. I deactivated the VScode Solargraph Extension and the warning went away. Sorry for the confusion.
No branches or pull requests
Operating System
Linux Mint 21.3
Ruby version
3.2.1
Project has a bundle
Ruby version manager being used
rbenv
Description
The extension and rubocop work well. However Rubocop complains about:
…with…
Required path net/ssh could not be resolved.RequireNotFound
…although I have this in my Gemfile…
…and my Ruby script can successfully use Net::SSH when started with "bundle exec".
When I run…
…it happily says…
1 file inspected, no offenses detected
I suspect that Rubocop may not be called as "bundle exec rubocop" and thus does not pick up the gems from my Gemfile.
The text was updated successfully, but these errors were encountered: