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