Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RVM list strings provide a nil line #1266

Closed
gpsnail opened this issue Oct 24, 2012 · 14 comments
Closed

RVM list strings provide a nil line #1266

gpsnail opened this issue Oct 24, 2012 · 14 comments
Assignees
Milestone

Comments

@gpsnail
Copy link

gpsnail commented Oct 24, 2012

Hello,
I'm using RVM on a system wide with version 1.16.17, I got a line containing the string "nil" when using the command

  • rvm list strings

instead of having just the rubies line.

thanks

@mpapis
Copy link
Member

mpapis commented Oct 24, 2012

please provide gist of rvm --trace list strings

@gpsnail
Copy link
Author

gpsnail commented Oct 24, 2012

https://gist.github.com/3948337

I test a little bit more and the problem seems to come from the install of rubies on a fresh new RVM installation which create a nil rubies.

@gpsnail
Copy link
Author

gpsnail commented Oct 24, 2012

Hello,

So I make a test on new RVM installed and the problem appears when running install command here is the trace when creating nil directory

  • /scripts/rubygems : 222 > rubygems_link
  • /scripts/rubygems : rubygems_link() 185 > typeset ruby_lib_gem_path
  • /scripts/rubygems : rubygems_link() 186 > rubygems_detect_ruby_lib_gem_path
    ++ /scripts/functions/utility : rubygems_detect_ruby_lib_gem_path() 510 > ruby -rrbconfig -e 'puts ::Kernel.const_get('''RbConfig''')::CONFIG['''rubylibprefix''']'
  • /scripts/functions/utility : rubygems_detect_ruby_lib_gem_path() 510 > ruby_lib_gem_path=nil/gems/
  • /scripts/functions/utility : rubygems_detect_ruby_lib_gem_path() 511 > case "$rvm_ruby_string" in
    ++ /scripts/functions/utility : rubygems_detect_ruby_lib_gem_path() 516 > ruby -rrbconfig -e 'puts ::Kernel.const_get('''RbConfig''')::CONFIG['''ruby_version''']'
  • /scripts/functions/utility : rubygems_detect_ruby_lib_gem_path() 516 > ruby_lib_gem_path+=1.8
    ++ /scripts/rubygems : rubygems_link() 189 > dirname nil/gems/1.8
  • /scripts/rubygems : rubygems_link() 189 > mkdir -p nil/gems
  • /scripts/rubygems : rubygems_link() 191 > __rvm_rm_rf nil/gems/1.8
  • /scripts/functions/cleanup : __rvm_rm_rf() 6 > __rvm_rm_rf_verbose nil/gems/1.8
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 13 > typeset result target
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 14 > result=1
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 15 > target=nil/gems/1.8
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 18 > [[ -n '' ]]
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 22 > [[ -n 4.2.24(1)-release ]]
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 24 > shopt -s extglob
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 29 > case "${target}" in
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 34 > [[ -n nil/gems/1.8 ]]
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 36 > [[ -d nil/gems/1.8 ]]
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 40 > [[ -f nil/gems/1.8 ]]
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 40 > [[ -L nil/gems/1.8 ]]
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 45 > result=0
  • /scripts/functions/cleanup : __rvm_rm_rf_verbose() 50 > return 0
  • /scripts/rubygems : rubygems_link() 193 > [[ -d '' ]]
  • /scripts/rubygems : 233 > exit 0

Hope it will help.

@mpapis
Copy link
Member

mpapis commented Oct 25, 2012

what ruby was that? what shell (and version) are you using? can you provide gist of the full install trace log? (please do not paste long traces into the issue itself)

@gpsnail
Copy link
Author

gpsnail commented Oct 25, 2012

Hello,
I installed RVM on a system wide ubuntu where ruby 1.8.6 is installed.
RVM install correctly without any error.
When installed the ruby 1.9.3 thru RVM using command

  • rvm install 1.9.3

A nil directory is created under the rubies directory.

The full trace is available on this gist : https://gist.github.com/3951291

RVM version is 1.16.17

@mpapis mpapis closed this as completed in b7f137d Oct 25, 2012
@mpapis
Copy link
Member

mpapis commented Oct 25, 2012

scheduled for 1.16.18

@mpapis mpapis reopened this Oct 25, 2012
@ghost ghost assigned mpapis Oct 25, 2012
@gpsnail
Copy link
Author

gpsnail commented Oct 25, 2012

Thanks..

@elijahchancey
Copy link

+1

@mpapis mpapis closed this as completed in 7978b5c Nov 6, 2012
@gpsnail
Copy link
Author

gpsnail commented Nov 8, 2012

Still get the error on 1.16.19

https://gist.github.com/4038194

@mpapis
Copy link
Member

mpapis commented Nov 8, 2012

@gpsnail you already have nil in there, you need to remove it: rm -rf $rvm_path/rubies/nil

@gpsnail
Copy link
Author

gpsnail commented Nov 8, 2012

@mpapis no it was on a fresh install from this morning, I just made another install in progress and let you know....

@gpsnail
Copy link
Author

gpsnail commented Nov 9, 2012

@mpapis just to confirm, made a fresh install and still get the issue.

@mpapis
Copy link
Member

mpapis commented Nov 9, 2012

I have just pushed another fix try:

rvm get head
rm -rf $rvm_path/rubies/nil
rvm reinstall 1.9.3
rvm list

@gpsnail
Copy link
Author

gpsnail commented Nov 9, 2012

@mpapis I just made a complete fresh install using "head" using branch "master" and I then get no more error

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

No branches or pull requests

3 participants