Rubymine 2016.3.2: ruby sdk differs from system (rvm's) default when opening a ruby project for the first time
Hi.
I've created a new rails app:
%ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux]
%rvm list
rvm rubies
ruby-2.1.5 [ i686 ]
ruby-2.1.9 [ i686 ]
ruby-2.2.1 [ i686 ]
=* ruby-2.3.0 [ i686 ]
# => - current
# =* - current && default
# * - default
%ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux]
%rails new xyz
I then opened the project in rubymine. When I goto settings (ctrl+alt+s) / Ruby SDKs & Gems, the selected ruby version is different than the default (stated above as 2.3.0).
Oddly, if I open a terminal inside rubymine and type 'ruby -v' it gives 2.3.0 as the current version.
If I change the SDK to 2.3.0 and restart rubymine, this setting is persisted. However, I don't understand why rubymine falls back to 2.2.1 when opening projects for the first time.
Could you please assist?
Thanks!
Amit

请先登录再写评论。
Hello,
could you please specify what SDK is set as the default one (File | Default Settings).