Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.3
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux arturaz-fujitsu 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 i686 i386 GNU/Linux
      jruby 1.7.0.dev (ruby-1.8.7-p330) (2011-08-14 c4ff7e1) (Java HotSpot(TM) Client VM 1.7.0) [linux-i386-java]
    • Number of attachments :
      0

      Description

      JRuby crashes out when trying to update RubyGems.

      arturas@arturaz-fujitsu:~/work/nebula-web/www$ gem update --system
      Updating RubyGems
      ERROR:  While executing gem ... (NoMethodError)
          undefined method `version' for nil:NilClass
      

      Which is needed in order to install autotest.

      arturas@arturaz-fujitsu:~/work/nebula-web/www$ gem install autotest
      Fetching: ZenTest-4.6.1.gem (100%)
      ERROR:  Error installing autotest:
      	ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.
      

      Please not that even if this is tested with JRuby master branch, 1.6.3 fails as well.

        Activity

        Hide
        Arturas Slajus added a comment -

        Although updating in this way works fine:

        arturas@arturaz-fujitsu:~/work/nebula-web/www$ jruby -S gem install rubygems-update
        Fetching: rubygems-update-1.8.8.gem (100%)
        Successfully installed rubygems-update-1.8.8
        1 gem installed
        arturas@arturaz-fujitsu:~/work/nebula-web/www$ gem update --system
        Updating RubyGems
        Updating RubyGems to 1.8.8
        Installing RubyGems 1.8.8
        RubyGems 1.8.8 installed
        
        == 1.8.8 / 2011-08-11
        
        * Bug fix:
          * The encoding of a gem's YAML spec is now UTF-8.  Issue #149
        
        
        ------------------------------------------------------------------------------
        
        RubyGems installed the following executables:
        	/home/arturas/.rvm/rubies/jruby-head/bin/jgem
        
        RubyGems system software updated
        arturas@arturaz-fujitsu:~/work/nebula-web/www$ gem install autotest
        Fetching: autotest-4.4.6.gem (100%)
        Successfully installed ZenTest-4.6.1
        Successfully installed autotest-4.4.6
        2 gems installed
        
        
        Show
        Arturas Slajus added a comment - Although updating in this way works fine: arturas@arturaz-fujitsu:~/work/nebula-web/www$ jruby -S gem install rubygems-update Fetching: rubygems-update-1.8.8.gem (100%) Successfully installed rubygems-update-1.8.8 1 gem installed arturas@arturaz-fujitsu:~/work/nebula-web/www$ gem update --system Updating RubyGems Updating RubyGems to 1.8.8 Installing RubyGems 1.8.8 RubyGems 1.8.8 installed == 1.8.8 / 2011-08-11 * Bug fix: * The encoding of a gem's YAML spec is now UTF-8. Issue #149 ------------------------------------------------------------------------------ RubyGems installed the following executables: /home/arturas/.rvm/rubies/jruby-head/bin/jgem RubyGems system software updated arturas@arturaz-fujitsu:~/work/nebula-web/www$ gem install autotest Fetching: autotest-4.4.6.gem (100%) Successfully installed ZenTest-4.6.1 Successfully installed autotest-4.4.6 2 gems installed
        Hide
        Arturas Slajus added a comment -

        Which probably should bring priority from blocker to something less serious...

        Show
        Arturas Slajus added a comment - Which probably should bring priority from blocker to something less serious...
        Hide
        Nick Klauer added a comment -

        Except that it doesn't work for me:

        PS C:\jruby-1.6.4> jruby -S gem install rubygems-update
        Fetching: rubygems-update-1.8.10.gem (255488B)
        Successfully installed rubygems-update-1.8.10
        1 gem installed
        PS C:\jruby-1.6.4> jruby -S update_rubygems
        Error opening script file: C:/jruby-1.6.4/setup.rb (The system cannot find the file specified)
        PS C:\jruby-1.6.4>
        
        Show
        Nick Klauer added a comment - Except that it doesn't work for me: PS C:\jruby-1.6.4> jruby -S gem install rubygems-update Fetching: rubygems-update-1.8.10.gem (255488B) Successfully installed rubygems-update-1.8.10 1 gem installed PS C:\jruby-1.6.4> jruby -S update_rubygems Error opening script file: C:/jruby-1.6.4/setup.rb (The system cannot find the file specified) PS C:\jruby-1.6.4>
        Hide
        Hiro Asari added a comment -

        You guys are aware that doing such an upgrade will break JRuby gem's maven compatibility, correct? See JRUBY-5961

        Show
        Hiro Asari added a comment - You guys are aware that doing such an upgrade will break JRuby gem's maven compatibility, correct? See JRUBY-5961
        Hide
        Nick Klauer added a comment -

        I am aware of that, but is it being used much? I didn't think it worked entirely well yet. I have a corporate maven repo, and I could never get that to work well unless I was outside of my work VPN where it would just publicly grab the Maven Central repo for anything. For my needs, I couldn't get it working.

        Show
        Nick Klauer added a comment - I am aware of that, but is it being used much? I didn't think it worked entirely well yet. I have a corporate maven repo, and I could never get that to work well unless I was outside of my work VPN where it would just publicly grab the Maven Central repo for anything. For my needs, I couldn't get it working.
        Hide
        Hiro Asari added a comment -

        We ship with 1.8.15 now, and it appears to work. I'm resolving this optimistically. If it's still a problem, let us know.

        $ jruby -S gem update --system                                                                               system master c725e7d
        Updating rubygems-update
        Fetching: rubygems-update-1.8.21.gem (100%)
        Successfully installed rubygems-update-1.8.21
        Installing RubyGems 1.8.21
        RubyGems 1.8.21 installed
        
        == 1.8.21 / 2012-03-22
        
        * 2 bug fixes:
        
          * Add workaround for buggy yaml output from 1.9.2
          * Force 1.9.1 to remove it's prelude code. Fixes #305
        
        
        ------------------------------------------------------------------------------
        
        RubyGems installed the following executables:
        	/Users/asari/Development/src/jruby/bin/jgem
        
        RubyGems system software updated
        
        Show
        Hiro Asari added a comment - We ship with 1.8.15 now, and it appears to work. I'm resolving this optimistically. If it's still a problem, let us know. $ jruby -S gem update --system system master c725e7d Updating rubygems-update Fetching: rubygems-update-1.8.21.gem (100%) Successfully installed rubygems-update-1.8.21 Installing RubyGems 1.8.21 RubyGems 1.8.21 installed == 1.8.21 / 2012-03-22 * 2 bug fixes: * Add workaround for buggy yaml output from 1.9.2 * Force 1.9.1 to remove it's prelude code. Fixes #305 ------------------------------------------------------------------------------ RubyGems installed the following executables: /Users/asari/Development/src/jruby/bin/jgem RubyGems system software updated

          People

          • Assignee:
            Hiro Asari
            Reporter:
            Arturas Slajus
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: