小编Ale*_*ich的帖子

不要用原子操作rubocop

我尝试在atom中连接rubocop并在atom中出错。

linter-registry.js [sm]:144 [Linter] Error running RuboCop Error: /usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'rubocop' (>= 0.a) among 16 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/kurilovichay/.rvm/gems/ruby-2.3.1:/home/kurilovichay/.rvm/gems/ruby-2.3.1@global', execute `gem env` for more information
    from /usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
    from /usr/local/bin/rubocop:22:in `<main>'
    at parseFromStd (/home/kurilovichay/.atom/packages/linter-rubocop/src/index.js:41:43)
    at Object.<anonymous> (/home/kurilovichay/.atom/packages/linter-rubocop/src/index.js:212:27)
    at next (<anonymous>)
    at step (/home/kurilovichay/.atom/packages/linter-rubocop/src/index.js:11:273)
Run Code Online (Sandbox Code Playgroud)

哪个rubocop返回:

/usr/local/bin/rubocop
Run Code Online (Sandbox Code Playgroud)

这是不对的?

ruby ruby-on-rails rubocop atom-editor linter

4
推荐指数
1
解决办法
2009
查看次数

标签 统计

atom-editor ×1

linter ×1

rubocop ×1

ruby ×1

ruby-on-rails ×1