RVM.ruby-gemset file does not switch gemsets

Why doesn't rvm switch to @project_gemset when I connect to the project directory? The name gemset in my .ruby-gemset file matches the name listed in the rmm gemset list.

  > cd project
 > ls -A
 .ruby-gemset
 > cat .ruby-gemset
 project_gemset
 > rvm gemset list

 gemsets for ruby-1.9.3-p392 (found in /Users/david/.rvm/gems/ruby-1.9.3-p392)
 => (default)
    global
    project_gemset 
+6
source share
1 answer

It seems you should have both a valid .ruby version file and a .ruby-gemset file so that rvm can make this switch.

I was hoping he would switch gemset and use the standard ruby ​​version, since gemset is one of the existing gemset for my ruby ​​by default. But that is not how it works.

+16
source

Source: https://habr.com/ru/post/946297/


All Articles