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

A whitespace snuck into rubygems' initialization call. #2753

Closed
digitalextremist opened this issue Mar 24, 2015 · 4 comments
Closed

A whitespace snuck into rubygems' initialization call. #2753

digitalextremist opened this issue Mar 24, 2015 · 4 comments

Comments

@digitalextremist
Copy link
Contributor

Cannot install jruby-head via the latest RVM:

jruby-head - #installing rubygems-2.4.6...
Error running 'env GEM_HOME=/home/de/.rvm/gems/jruby-head@global GEM_PATH= /home/de/.rvm/rubies/jruby-head/bin/ruby -d /home/de/.rvm/src/rubygems-2.4.6/setup.rb --no-document',
showing last 15 lines of /home/de/.rvm/log/1427221439_jruby-head/rubygems.install.log
   do_require at /home/de/.rvm/rubies/jruby-head/lib/ruby/stdlib/jar_dependencies.rb:213
  require_jar at /home/de/.rvm/rubies/jruby-head/lib/ruby/stdlib/jar_dependencies.rb:159
  require_jar at /home/de/.rvm/rubies/jruby-head/lib/ruby/stdlib/jar_dependencies.rb:222
        <top> at /home/de/.rvm/rubies/jruby-head/lib/ruby/stdlib/psych_jars.rb:5
      require at org/jruby/RubyKernel.java:966
       (root) at /home/de/.rvm/src/rubygems-2.4.6/lib/rubygems/core_ext/kernel_require.rb:1
        <top> at /home/de/.rvm/src/rubygems-2.4.6/lib/rubygems/core_ext/kernel_require.rb:54
      require at org/jruby/RubyKernel.java:966
       (root) at /home/de/.rvm/rubies/jruby-head/lib/ruby/stdlib/psych.rb:3
       (root) at /home/de/.rvm/src/rubygems-2.4.6/lib/rubygems/core_ext/kernel_require.rb:1
      require at /home/de/.rvm/src/rubygems-2.4.6/lib/rubygems/core_ext/kernel_require.rb:54
    load_yaml at /home/de/.rvm/src/rubygems-2.4.6/lib/rubygems.rb:609
    load_file at /home/de/.rvm/src/rubygems-2.4.6/lib/rubygems/config_file.rb:328
   initialize at /home/de/.rvm/src/rubygems-2.4.6/lib/rubygems/config_file.rb:197
        <top> at setup.rb:45

Notice: GEM_PATH= has whitespace after it, before my path, which is causing the error.

It thinks my GEM_PATH is ' '

@headius
Copy link
Member

headius commented Apr 2, 2015

So I guess the problem is that when GEM_PATH is empty, someone is setting it to a space character. That doesn't seem like it would be us, since we don't read or deal with GEM_PATH in any JRuby code. I will try to reproduce and see who's doing it.

@digitalextremist
Copy link
Contributor Author

👍

@headius
Copy link
Member

headius commented Apr 2, 2015

I could not reproduce directly with JRuby, even using that exact command line reported by rvm, and doing an rvm reinstall jruby-head seemed to get past this point (but failed on something else):

...
jruby-head - #installing rubygems-2.4.6.....................
jruby-head - #gemset created /Users/headius/.rvm/gems/jruby-head@global
jruby-head - #importing gemset /Users/headius/.rvm/gemsets/jruby/global.gems...................................................................
...

I'm not sure how to proceed, and it doesn't appear to be our problem (since that command line works ok here). Perhaps try updating rvm or pinging them about it?

@digitalextremist
Copy link
Contributor Author

@headius you have gone above and beyond, on this and with my more pressing IO Selector issue. I will definitely close this and take this up with the appropriate people. I really appreciate what you do.

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