Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How do I run nokogiri tests in JRuby?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dmitry Ratnikov  
View profile  
 More options Apr 30 2012, 2:08 pm
From: Dmitry Ratnikov <ratni...@gmail.com>
Date: Mon, 30 Apr 2012 14:08:25 -0400
Local: Mon, Apr 30 2012 2:08 pm
Subject: Re: [nokogiri-talk] How do I run nokogiri tests in JRuby?
Thanks, I'll try that!

So is racc is not jruby compatible? I've poked into its source a
little bit (github.com/tenderlove/racc version) and seems like the
extensions Makefile does mention java...

-- D

On Mon, Apr 30, 2012 at 2:03 PM, Mike Dalessio <mike.dales...@gmail.com> wrote:
> Hello,

> On Mon, Apr 30, 2012 at 1:43 PM, Dmitry Ratnikov <ratni...@gmail.com> wrote:

>> I ran into a minor issue with nokogori (https://github.com/tenderlove/
>> nokogiri/blob/master/lib/nokogiri/html/document.rb#L183
>> throwing :encoding_found.to_s but catching a symbol) and wanted to run
>> the tests to see if they passed. However, I ran into:

>> bash-3.2$ rake test
>> install -c tmp/java/nokogiri/nokogiri.jar lib/nokogiri/nokogiri.jar
>> /Users/ratnikov/.rvm/gems/jruby-1.6.7/bin/racc -l -o lib/nokogiri/css/
>> parser.rb lib/nokogiri/css/parser.y
>> ArgumentError: rb_iterate only supported with rb_each and an Array
>> send at org/jruby/RubyKernel.java:2088
>> yyparse at /Users/ratnikov/.rvm/gems/jruby-1.6.7/gems/racc-1.4.8/lib/
>> racc/parser.rb:152
>> parse at /Users/ratnikov/.rvm/gems/jruby-1.6.7/gems/racc-1.4.8/lib/
>> racc/grammarfileparser.rb:184
>> main at /Users/ratnikov/.rvm/gems/jruby-1.6.7/gems/racc-1.4.8/bin/racc:
>> 143
>> section at /Users/ratnikov/.rvm/gems/jruby-1.6.7/gems/racc-1.4.8/bin/
>> racc:277
>> main at /Users/ratnikov/.rvm/gems/jruby-1.6.7/gems/racc-1.4.8/bin/racc:
>> 141
>> (root) at /Users/ratnikov/.rvm/gems/jruby-1.6.7/gems/racc-1.4.8/bin/
>> racc:308
>> load at org/jruby/RubyKernel.java:1058
>> (root) at /Users/ratnikov/.rvm/gems/jruby-1.6.7/bin/racc:19
>> rake aborted!
>> Command failed with status (1): [/Users/ratnikov/.rvm/gems/jruby-1.6.7/
>> bin/...]

>> I dug a little bit further and it seems like the issue is within racc.
>> But the latest repo I found has been updated 6 months ago and it also
>> seems like although it does mention java in the Makefile, it still
>> installs C bindings when doing gem install. Perhaps I am doing
>> something very wrong?

> racc and rexical should be built under an MRI version of ruby. Try something
> like this (assuming presence of RVM):

> rvm_use jruby-1.6.5
> bundle exec rake clean clobber
> rvm_use 1.8.7
> bundle exec rake generate # uses racc and rexical to build lexer/parser code
> rvm_use jruby-1.6.5
> bundle exec rake

>> PS Another fellow #jruby-er ran into the same problem when trying to
>> run nokogiri tests, so it seems like the issue is not limited to my
>> setup.

>> --
>> You received this message because you are subscribed to the Google Groups
>> "nokogiri-talk" group.
>> To post to this group, send email to nokogiri-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> nokogiri-talk+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/nokogiri-talk?hl=en.

> --
> You received this message because you are subscribed to the Google Groups
> "nokogiri-talk" group.
> To post to this group, send email to nokogiri-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> nokogiri-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nokogiri-talk?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.