Re: [jruby-user] JRuby Head Broken?

Thomas E Enebo <[email protected]> Tue, 24 Feb 2015 13:38:32 -0600
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CAL5zZV=wXZJ_S7voX01APY+RGw0TNyj+Rsp6Zo3GV+Ybwij7cw@mail.gmail.com>
This is something I am working on atm.  In mixed mode we have a race which
does not seem to affect any tests we run but I can see it in some more
complicated scenarios.  I am trying to get this back this afternoon to
being solid.

-Tom

On Tue, Feb 24, 2015 at 1:28 PM, Keith Bennett <[email protected]>
wrote:

> Hi, all...I'm helping with the 'dnsruby' gem (
> https://github.com/alexdalitz/dnsruby), and have been making sure it runs
> on JRuby.
>
> We recently got a Travis CI error running the tests on JRuby head.  Should
> we not be including JRuby head in the versions to test with Travis CI?
>
> The page showing the error is at:
>
> https://travis-ci.org/alexdalitz/dnsruby/jobs/51427488
>
> I installed jruby-head using rvm, and whenever I run irb and input
> anything, it says:
>
> ➜  ~  irb
>  :001 >
>  :002 >   puts 'hello'
> hello
> NoMethodError: undefined method `CurrentContext' for
> #<Class:0x5b2b8d86>::IRB
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb/workspace.rb:85:in
> `evaluate'
>     from org/jruby/RubyKernel.java:990:in `eval'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb/workspace.rb:86:in
> `evaluate'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb/context.rb:263:in
> `set_last_value'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb/context.rb:379:in
> `evaluate'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb.rb:489:in
> `eval_input'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb.rb:623:in
> `signal_status'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb.rb:486:in
> `eval_input'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb/ruby-lex.rb:245:in
> `each_top_level_statement'
>     from org/jruby/RubyKernel.java:1310:in `loop'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb/ruby-lex.rb:231:in
> `each_top_level_statement'
>     from org/jruby/RubyKernel.java:1120:in `catch'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb/ruby-lex.rb:230:in
> `each_top_level_statement'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb.rb:485:in
> `eval_input'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb.rb:395:in `start'
>     from org/jruby/RubyKernel.java:1120:in `catch'
>     from
> /Users/kbennett/.rvm/rubies/jruby-head/lib/ruby/stdlib/irb.rb:394:in `start'
>     from /Users/kbennett/.rvm/rubies/jruby-head/bin/irb:13:in
> `__script__'Maybe IRB bug!
>
> I suspect I should be ignoring jruby-head, expecting it to sometimes be
> unstable.  Is that the answer?
>
> Thanks,
> Keith
>
>


-- 
blog: http://blog.enebo.com       twitter: tom_enebo
mail: [email protected]