Unable to run Rails tests since we use Psych as default yaml lib ----------------------------------------------------------------
Key: JRUBY-5387 URL: http://jira.codehaus.org/browse/JRUBY-5387 Project: JRuby Issue Type: Bug Components: Ruby 1.9, Standard Library Reporter: David Calavera Assignee: Thomas E Enebo This is the error that I get running Rails tests with JRuby master: {noformat} org/jruby/RubyKernel.java:1050:in `require19': load error: /home/dcalavera/dev/rails3/load_paths -- org.yaml.snakeyaml.scanner.ScannerException: null; mapping values are not allowed here (LoadError) from /home/dcalavera/dev/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' from /home/dcalavera/dev/rails3/activesupport/test/abstract_unit.rb:5:in `(root)' from org/jruby/RubyKernel.java:1050:in `require19' from /home/dcalavera/dev/rails3/activesupport/test/abstract_unit.rb:29:in `require' from /home/dcalavera/dev/rails3/activesupport/test/clean_logger_test.rb:1:in `(root)' from org/jruby/RubyKernel.java:1076:in `load19' from /home/dcalavera/.rvm/gems/jruby-1.5.6/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `__file__' from org/jruby/RubyArray.java:1671:in `each' from /home/dcalavera/.rvm/gems/jruby-1.5.6/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `(root)' rake aborted! Command failed with status (1): [/home/dcalavera/dev/jruby/bin/jruby -w -I"...] (See full trace by running task with --trace) {noformat} And this is the commit that introduced the bug: {noformat} $ git bisect good f0c217b6f0e3d9d23dc0215ce51604ad3d039627 is the first bad commit commit f0c217b6f0e3d9d23dc0215ce51604ad3d039627 Author: Charles Oliver Nutter <head...@headius.com> Date: Fri Jan 14 19:51:07 2011 -0600 Fix JRUBY-5326: [1.9] Java error in Psych when running "gem build" command Problem here was that our lib/ruby/1.9 YAML files were still the 1.8 versions. After I swapped them out, the next problem was that they default to using the "syck" extension. Making them load "yecht" instead did not appear to completely work, so instead I took the controversial route, enabling psych by default. We'll see how it goes in RC. We can always fall back on yecht if we need to. * Get 1.9 yaml libs to match 1.9 * Move yaml libs out of builtin * Use Psych by default for 1.9 yaml :040000 040000 36a73c84d2962f07108067fc6dd980ef9e3b5194 bb69ed5130af4ef408498b355603f709509d57c3 M lib :040000 040000 2abed7cbe0ffd91a339d5ad86969bdfc48c3f555 9c0e348ca33bfb789f1808674e9865bad3b4825a M src :040000 040000 f2bb79b75c769cc6e559a084cf2b95250f73f169 4fea6f03574ffd55fd329654f9d576a5acb3da25 M tool {noformat} -- 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