You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
I'm having the exact same issue as #127, but I am using chruby, not RVM. If I start atom from the command line, it will load Rubocop and linting does work.
Error: /Users/hbraun/.rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'rubocop' (>= 0) among 8 total gem(s) (Gem::LoadError)
from /Users/hbraun/.rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'
from /Users/hbraun/.rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
from /Users/hbraun/.gem/ruby/2.1.2/bin/rubocop:22:in `<main>'
at /Users/hbraun/.atom/packages/linter-rubocop/index.coffee:30:15
The text was updated successfully, but these errors were encountered:
I'm not sure there is anything that can be done about this here... all of those "change program version" things (rvm, chruby, nvm, n, ...) seem to do different, hacky things to get it working in the CLI, which doesn't translate well (or at all) to things that aren't a pure CLI environment.
You can try figuring out how chruby is doing this, why it isn't working currently, and filing an issue over on consistent-env to get it fixed there, as that's what is used to run things here. For now though marking this as closed as it's an external issue.
As you have seen, the workaround for this is to just launch Atom from the CLI initially.
I'm having the exact same issue as #127, but I am using chruby, not RVM. If I start atom from the command line, it will load Rubocop and linting does work.
The text was updated successfully, but these errors were encountered: