LoginSignup
2
0

More than 5 years have passed since last update.

Rubymineでテスト実行時にfind_spec_for_exeが出る問題の対象

Posted at

Rubymineでテスト実行すると

Testing started at 11:55 ...

/Users/user.name/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem spring (>= 0.a) (Gem::GemNotFoundException)
    from /Users/user.name/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems.rb:298:in `activate_bin_path'
    from /Users/tomoya.hirano/Documents/workspace/pokota-server/vendor/bundle/ruby/2.4.0/bin/spring:22:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

Process finished with exit code 1

と言われて動かない時がある。

このspringはどうもglobalの方を参照してるっぽいので

gem install spring

するとちゃんと動くようになる。
bundlerの方参照する設定とかあるんかなぁ

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