ri fails in 1.9 mode
--------------------

                 Key: JRUBY-4411
                 URL: http://jira.codehaus.org/browse/JRUBY-4411
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9
    Affects Versions: JRuby 1.5
         Environment: JVM 1.5 on Leopard PPC
            Reporter: Ian Dees
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.5
         Attachments: 0001-Fixed-ri-for-1.9-mode.patch

Running the following command:

{noformat}
jruby --1.9 -S ri --help
{noformat}

... yields the following error:

{noformat}
/path/to/jruby/bin/ri:44:in `require': no such file to load -- 
rdoc/ri/ri_driver (LoadError)
        from /path/to/jruby/bin/ri:44
{noformat}

It looks like the {{ri}} files have been reorganized a bit in 1.9.  The 
following code in {{ri}}:

{noformat}
require 'rdoc/ri/ri_driver'
ri = RiDriver.new
ri.process_args
{noformat}

... needs to do something like this instead for 1.9:

{noformat}
require 'rdoc/ri/driver'
RDoc::RI::Driver.run
{noformat}

The attached patch rescues the {{LoadError}} and falls back to the 1.9 method; 
the included test case tries {{ri}} in both 1.8 and 1.9 modes.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to