Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

rvm partial bug #4

Open
afhammad opened this issue Sep 20, 2011 · 1 comment
Open

rvm partial bug #4

afhammad opened this issue Sep 20, 2011 · 1 comment

Comments

@afhammad
Copy link

the following line does not work.

rvm_list = 'rvm list'.gsub(Regexp.new("\e[.?.?.?m"), '')

/web/temp/partials/_rvm.rb:8:in apply': undefined method[]' for nil:NilClass (NoMethodError)

@greendog99
Copy link
Owner

I've tried to reproduce your error but have not been able to. Try running the command from irb and see if it works:

$ irb
>> rvm_list = `rvm list`.gsub(Regexp.new("\e\\[.?.?.?m"), '')
=> "\nrvm rubies\n\n=> ruby-1.9.2-p290\e(B [ x86_64 ]\n\n"

Also, it's completely safe to remove this line from the _rvm.rb partial if you do not have export rvm_pretty_print_flag=1 in your .rvmrc file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants