ruby! rails! kids! oh my! … and other fun from terry heath
RSS icon Email icon Home icon
  • Tidy Gem, Rails, Segfault, Pain

    Posted on June 2nd, 2009 terry No comments

    I’ve been dealing with Tidy gem issues for the last 48 hours, and look to have made my way out of the woods. Here’s a few things for whoever might google this (segmentation fault, ruby, rails, tidy, eval):

    1. The old tidy gem, the one you’ve probably installed (version 1.1.2) is NOT maintained. This is a problem, because as structs in libtidy change, if the tidy gem isn’t updated to reflect those changes, segfaults happen.
    2. DO NOT, FOR THE LOVE OF WHATEVER, USE 0 FOR FALSE. I know, this seems stupid, since in C, 0 is false. But it’s not in the library. Right. I know. Ridiculous. This mostly applies to the tidyopts, fwiw.

    Anyways, I’ve put up a gem (and will maintain it, and comment here if you have issues) that has the necessary updates to work with the latest version of Tidy.

    Find it here: http://github.com/terrbear/tidy/tree/master

    Comments are closed.