Re: Possible issue related to your changes that made it into 1.9.3-p194

14 views
Skip to first unread message

Jon

unread,
Jun 13, 2012, 4:31:11 PM6/13/12
to theco...@googlegroups.com

Hello,

As a ruby on windows user working with rails, I've kept track of what's been going on with performance for quite a while.  I've even deployed a production rails app (spree commerce) using the tcs version of 1.9.3 (p0) earlier on, although I've since moved it to Linux.

I noticed when going through the ruby-trunk redmine issue tracker that some of the work which was started in the TCS versions made it into the 1.9.3-p194 release.  I was excited to give this a try.

Once I installed that version with rubyinstaller and got my rails app in place, I came across an error that didn't show up under Linux.  The psych gem was throwing a syntax error on the en.yml translations file in my app.  Remember, earlier versions of ruby didn't have this issue.

The odd thing was that the line and column cited in the error didn't exist.  It was well beyond the newline on that line.

This seemed to me to be an issue recognizing newlines in the file.  Since the en.yml file was in a git repo, I went into the bundler directory, found it and converted the newlines from CR+LF to just CR.  Voila, the app started up happily this time.

Now, that problem could lie somewhere in git (unchanged on my system) or pysch, or any other number of places, but the only new piece to the system was the 1.9.3-p194.  I've also tested that version on Linux and it works, so the error is Linux specific.

Since reading the issue tracker history, I know that the changes that made it into trunk have everything to do with going from text mode (with newline handling) to binary mode, which relies on some new method for newline handling.  If there is a most likely candidate for what's causing the error, I'd start looking at the changes introduced in ruby-trunk from this project.

I'm grateful for the work on improving speed of course, so I'm not sounding ungrateful...just want to bring this to your attention and see if we can't find out the root cause.

Thanks for the info Ted.

Would you see if it still failes for you using the latest `tcs-ruby193_require_fenix_gc_hash_20120527.7z` release (tcs-ruby 1.9.3p231) available from https://github.com/thecodeshop/ruby/wiki/Downloads

This newer version includes Hiroshi's latest updates. If the newer version still fails, please get us a gist/pastie/hastebin with details (OS, output of `gem env`, etc) about your system and the actual failure.

Jon
Reply all
Reply to author
Forward
0 new messages