LoginSignup
1
1

More than 5 years have passed since last update.

RubyMine 7にアップグレードしたら Cannot switch SDK. になる場合の対策

Last updated at Posted at 2014-11-13

現象

RubyMine 7が公開されていました。早速アップグレードしましたが、存在するはずのRubyを.ruby-versionに記述していたのですが、以下のメッセージが出てしまいました。

8:29:43 PM Project .ruby-version Settings: Cannot switch SDK. RVM SDK '2.1.3' wasn't found. (show balloon)

原因と対策

原因としては、.ruby-installの書き方がまずいようでした。(逆に、RubyMine 6までは、下記の記述で大丈夫でした。)

.ruby-version
2.1.3

これを、以下のように変更すると解決しました。

.ruby-version
ruby-2.1.3

RVMのlistの中で、以下のようになっていたので、それに則した形で記述する必要があったのかな?

➜  ~  rvm list

rvm rubies

   ruby-1.8.7-head [ i686 ]
   ruby-1.8.7-p374 [ i686 ]
   ruby-1.9.2-p320 [ x86_64 ]
   ruby-1.9.3-p547 [ x86_64 ]
   ruby-2.0.0-p353 [ x86_64 ]
   ruby-2.0.0-p481 [ x86_64 ]
   ruby-2.1.0 [ x86_64 ]
   ruby-2.1.2 [ x86_64 ]
=* ruby-2.1.3 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

References

1
1
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
1
1