From mboxrd@z Thu Jan 1 00:00:00 1970 From: benoit.pierre@gmail.com (=?utf-8?q?Beno=C3=AEt_PIERRE?=) Date: Tue, 18 Aug 2009 20:20:41 +0200 Subject: [sup-talk] crash when sup-syncing to xapian In-Reply-To: <1250616603-sup-5612@ntdws12.chass.utoronto.ca> References: <1250616603-sup-5612@ntdws12.chass.utoronto.ca> Message-ID: <1250619511-sup-2827@localdomain> Excerpts from Ben Walton's message of Tue Aug 18 19:35:35 +0200 2009: > > I just tried to import my index to xapian and it crashed part way > through the import. I then discovered that I couldn't use ferret > either. There is something wonky with label handling, as per attached > exception log. I haven't had a chance to look at the code yet, but > I'll poke at it tonight. I think I just ran into the same problem! For now I fixed it with the following small patch: diff --git a/lib/sup/label.rb b/lib/sup/label.rb index 67474c2..59c0c0f 100644 --- a/lib/sup/label.rb +++ b/lib/sup/label.rb @@ -61,6 +61,7 @@ class LabelManager end def << t + t = t.to_sym if t.is_a? String raise ArgumentError, "expecting a symbol" unless t.is_a? Symbol unless @labels.member?(t) || RESERVED_LABELS.member?(t) @labels[t] = true -- A: Because it destroys the flow of conversation. Q: Why is top posting dumb? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 289 bytes Desc: not available URL: