Rails script/console broken in JRuby 1.0.0RC1 (was still working in JRuby 0.99)
-------------------------------------------------------------------------------

                 Key: JRUBY-926
                 URL: http://jira.codehaus.org/browse/JRUBY-926
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.0.0RC1
         Environment: Linux 2.6.20, Java 1.6
            Reporter: Raphael Valyi
            Assignee: Thomas E Enebo


Hi,

* make sure you have JRuby 1.0.0RC1 installed
{noformat}
> rails foo
> cd foo
> jruby script/console
Loading development environment.
/home/rvalyi/DEV/jruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in
 `load_missing_constant':NameError: uninitialized constant Kconv
/home/rvalyi/DEV/jruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/test_process.rb:20:in
 `alias_method_chain':NameError: undefined method `process' for class 
`ActionController::Base'
/home/rvalyi/DEV/jruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in
 `load_missing_constant':NameError: uninitialized constant ActionController
>> ActionController::Base.methods
NameError: uninitialized constant ActionController
>>      from 
>> /home/rvalyi/DEV/jruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in
>>  `load_missing_constant'
        from 
/home/rvalyi/DEV/jruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
 `const_missing'
        from 
/home/rvalyi/DEV/jruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in
 `const_missing'
        from (irb):1:in `binding'
{noformat}

That sucks because all the console looks broken with JRuby 1.0.0RC1. And this 
is very useful to test things (like other jruby bugs or your app), do some 
maintainance...

Now, download JRuby 0.99 from: 
http://dist.codehaus.org/jruby/previous/jruby-bin-0.9.9.tar.gz
unzipp it and replace your JRUBY_HOME/lib/jruby.jar by the jruby.jar coming 
from the 0.99 distro.
now the same console test will work, proving this is a regression. Amazing 
isn't it?

Best regards,

Raphaƫl Valyi.

-- 
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