LoginSignup
2
0

More than 5 years have passed since last update.

atomのlinter-rubocopでrubocop-rspecが読み込まれない

Posted at

エラー内容

スクリーンショット 2016-10-07 11.32.51.png

Error: Warning: unrecognized cop RSpec/MessageExpectation found in /path/to/.rubocop_todo.yml /path/to/kernel_require.rb:55:in `require': cannot load such file -- rubocop-rspec (LoadError) 

rubocop-rspecが読み込まれてないとな。
ちなみにコンソールだとちゃんと実行できている。

$ bundle exec rubocop

:
:

61 files inspected, 10 offenses detected

エラー時の状態

各パッケージのバージョン

$ apm list | grep linter
├── linter@1.11.18
├── linter-rubocop@0.5.0

config.csonの設定内容

  "linter-rubocop":
    disableWhenNoConfigFile: true
    excutablePath: "bundle exec which rubocop"

原因

$ rubocopで実行されていた。

スクリーンショット 2016-10-07 11.46.53.png

試しにコンソールで実行すると、同じエラーが💡

$ rubocop
Warning: unrecognized cop RSpec/MessageExpectation found in /path/to/.rubocop_todo.yml
/path/to/kernel_require.rb:55:in `require': cannot load such file -- rubocop-rspec (LoadError)

実行コマンドをbundle exec rubocopに設定して無事解決。

スクリーンショット 2016-10-07 11.47.47.png

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0