Project

General

Profile

Actions

Bug #5960

closed

Error with rvm default gemset and rails rake

Added by funny_falcon (Yura Sokolov) almost 13 years ago. Updated almost 13 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
Backport:
[ruby-core:42324]

Description

After installing fresh ruby, creating fresh rails application, rake db:migrate fails with evident bug in requiring files
(already created constants, files are required from ~/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/ and from ~/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/)

Error disappeared when not default gemset is used.

https://gist.github.com/1725184

Updated by funny_falcon (Yura Sokolov) almost 13 years ago

I could not really say, if this bug of Ruby or RVM

Updated by naruse (Yui NARUSE) almost 13 years ago

  • Status changed from Open to Third Party's Issue

It is because,

  • the command rake is /home/yura/.rvm/gems/ruby-1.9.3-p0-test/bin/rake.
    so it loads files in /home/yura/.rvm/gems/ruby-1.9.3-p0-test@global/gems/rake-0.9.2.2.
  • but on the line 'gem "rake"' it loads files in /home/yura/.rvm/gems/ruby-1.9.3-p0-test@global/gems/rake-0.9.2.2
    maybe because of its LOADPATH.
    So they are conflicted.

This seems rvm's bug; PATH environment variable and LOADPATH should be consistent.

Actions

Also available in: Atom PDF

Like0
Like0Like0