JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-5226

ri error while installing Rails -- Cannot create a file named '<'

    Details

    • Number of attachments :
      0

      Description

      Not sure whether MRI has the same error or not, but it appears that ri is not handling impossible file names on windows properly:

      Installing ri documentation for tzinfo-0.3.23...
      Installing ri documentation for abstract-1.0.0...
      Installing ri documentation for erubis-2.6.6...
      Installing ri documentation for actionpack-3.0.3...
      Installing ri documentation for arel-2.0.6...
      Installing ri documentation for activerecord-3.0.3...
      ERROR:  While executing gem ... (SystemCallError)
          Unknown error - Unknown Error (20047) - C:\jruby-1.5.5\lib\ruby\gems\1.8\doc\activerecord-3.0.3\ri\.\<
      

      Can someone verify this with MRI? If it also happens on MRI then we need to create another bug elsewhere...

        Activity

        Hide
        Thomas E Enebo added a comment -

        From twitter: "@tom_enebo: Looks like MRI is busted too, at least 1.9.1 on XP is: https://gist.github.com/724102"

        If this is also busted on 1.8.7 then we have a trifecta. Looks like it may be a ri bug and not a JRuby problem.

        Show
        Thomas E Enebo added a comment - From twitter: "@tom_enebo: Looks like MRI is busted too, at least 1.9.1 on XP is: https://gist.github.com/724102 " If this is also busted on 1.8.7 then we have a trifecta. Looks like it may be a ri bug and not a JRuby problem.
        Hide
        Hiroshi Nakamura added a comment -

        usa (mswin64 maintainer of CRuby) said "@tom_enebo seem that there is no such problem on MRI trunk. I suggest that you should ask to the maintainer of rdoc/ri." http://twitter.com/#!/unak/status/10130415801081857

        • JRuby 1.8: NG
        • CRuby 1.9.1: NG
        • CRuby trunk: OK

        I'll try mswin32 1.8.7 soon.

        Show
        Hiroshi Nakamura added a comment - usa (mswin64 maintainer of CRuby) said "@tom_enebo seem that there is no such problem on MRI trunk. I suggest that you should ask to the maintainer of rdoc/ri." http://twitter.com/#!/unak/status/10130415801081857 JRuby 1.8: NG CRuby 1.9.1: NG CRuby trunk: OK I'll try mswin32 1.8.7 soon.
        Hide
        Hiroshi Nakamura added a comment -

        MRI 1.8.7-p302 fails with slightly different error message, but the root cause looks to be the same.

        C:\Users\nahi\Documents\tools\ruby-1.8.7-p302-i386-mswin32>bin\ruby.exe bin\gem
        install activerecord
        Successfully installed activesupport-3.0.3
        Successfully installed builder-2.1.2
        Successfully installed i18n-0.5.0
        Successfully installed activemodel-3.0.3
        Successfully installed arel-2.0.6
        Successfully installed tzinfo-0.3.23
        Successfully installed activerecord-3.0.3
        7 gems installed
        Installing ri documentation for activesupport-3.0.3...
        Installing ri documentation for builder-2.1.2...
        ERROR:  While generating documentation for builder-2.1.2
        ... MESSAGE:   Unhandled special: Special: type=17, text="<!-- HI -->"
        ... RDOC args: --ri --op C:/Users/nahi/Documents/tools/ruby-1.8.7-p302-i386-mswi
        n32/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building
        --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/bu
        ilder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc
         --title builder-2.1.2 Documentation
        (continuing with the rest of the installation)
        Installing ri documentation for i18n-0.5.0...
        Installing ri documentation for activemodel-3.0.3...
        Installing ri documentation for arel-2.0.6...
        Installing ri documentation for tzinfo-0.3.23...
        Installing ri documentation for activerecord-3.0.3...
        ERROR:  While executing gem ... (Errno::EINVAL)
            Invalid argument - ./</cdesc-<.yaml
        
        C:\Users\nahi\Documents\tools\ruby-1.8.7-p302-i386-mswin32>
        
        Show
        Hiroshi Nakamura added a comment - MRI 1.8.7-p302 fails with slightly different error message, but the root cause looks to be the same. C:\Users\nahi\Documents\tools\ruby-1.8.7-p302-i386-mswin32>bin\ruby.exe bin\gem install activerecord Successfully installed activesupport-3.0.3 Successfully installed builder-2.1.2 Successfully installed i18n-0.5.0 Successfully installed activemodel-3.0.3 Successfully installed arel-2.0.6 Successfully installed tzinfo-0.3.23 Successfully installed activerecord-3.0.3 7 gems installed Installing ri documentation for activesupport-3.0.3... Installing ri documentation for builder-2.1.2... ERROR: While generating documentation for builder-2.1.2 ... MESSAGE: Unhandled special: Special: type=17, text="<!-- HI -->" ... RDOC args: --ri --op C:/Users/nahi/Documents/tools/ruby-1.8.7-p302-i386-mswi n32/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/bu ilder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation (continuing with the rest of the installation) Installing ri documentation for i18n-0.5.0... Installing ri documentation for activemodel-3.0.3... Installing ri documentation for arel-2.0.6... Installing ri documentation for tzinfo-0.3.23... Installing ri documentation for activerecord-3.0.3... ERROR: While executing gem ... (Errno::EINVAL) Invalid argument - ./</cdesc-<.yaml C:\Users\nahi\Documents\tools\ruby-1.8.7-p302-i386-mswin32>
        Hide
        Hiroshi Nakamura added a comment -
        Show
        Hiroshi Nakamura added a comment - Filed the ticket for CRuby: http://redmine.ruby-lang.org/issues/show/4107
        Hide
        Leonid M. added a comment - - edited

        The workaround I used is

        jruby -S gem install  --no-ri --no-rdoc activerecord
        

        Filled in here because It failed on my in machine and had hard time figuring it out. Googlt hit me on this issue, still no workaround was mentioned.

        Show
        Leonid M. added a comment - - edited The workaround I used is jruby -S gem install --no-ri --no-rdoc activerecord Filled in here because It failed on my in machine and had hard time figuring it out. Googlt hit me on this issue, still no workaround was mentioned.
        Hide
        Charles Oliver Nutter added a comment -

        I've largely lost faith in rdoc/ri generation on install. It seems like something that should be done at gem build time and shipped with the gem, which would force gem authors to deal with these problems.

        We've considered just turning off rdoc generation during gem install...perhaps this is enough catalyst to do it for 1.6?

        Show
        Charles Oliver Nutter added a comment - I've largely lost faith in rdoc/ri generation on install. It seems like something that should be done at gem build time and shipped with the gem, which would force gem authors to deal with these problems. We've considered just turning off rdoc generation during gem install...perhaps this is enough catalyst to do it for 1.6?
        Hide
        Charles Oliver Nutter added a comment -

        I did an informal poll on whether we should disable rdoc/ri generation by default, and the response has been largely in favor...

        Show
        Charles Oliver Nutter added a comment - I did an informal poll on whether we should disable rdoc/ri generation by default, and the response has been largely in favor...
        Hide
        Thomas E Enebo added a comment -

        Since we match current 1.9.2 release of MRI still has this problem we should just defer this issue a bit...A later stdlib update will probably fix this at a later patchlevel of 1.9.2 (assuming the fix is backported from 1.9.3 master). Plus we disable ri/rdoc generation on rubygems by default now so I suspect very few people will ever even see the error anymore.

        Show
        Thomas E Enebo added a comment - Since we match current 1.9.2 release of MRI still has this problem we should just defer this issue a bit...A later stdlib update will probably fix this at a later patchlevel of 1.9.2 (assuming the fix is backported from 1.9.3 master). Plus we disable ri/rdoc generation on rubygems by default now so I suspect very few people will ever even see the error anymore.
        Hide
        Charles Oliver Nutter added a comment -

        Fixed at some point. I'll call it RC1.

        system ~/projects/jffi $ gem install --ri --rdoc activerecord
        Successfully installed activerecord-3.2.8
        1 gem installed
        Installing ri documentation for activerecord-3.2.8...
        Installing RDoc documentation for activerecord-3.2.8...
        
        system ~/projects/jffi $ 
        
        Show
        Charles Oliver Nutter added a comment - Fixed at some point. I'll call it RC1. system ~/projects/jffi $ gem install --ri --rdoc activerecord Successfully installed activerecord-3.2.8 1 gem installed Installing ri documentation for activerecord-3.2.8... Installing RDoc documentation for activerecord-3.2.8... system ~/projects/jffi $

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Thomas E Enebo
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: