From mboxrd@z Thu Jan 1 00:00:00 1970 From: bwalton@artsci.utoronto.ca (Ben Walton) Date: Sun, 06 Sep 2009 09:47:06 -0400 Subject: [sup-talk] sources.yaml labels In-Reply-To: <1252242820-sup-1452@masanjin.net> References: <1252196204-sup-4575@ntdws12.chass.utoronto.ca> <1252242820-sup-1452@masanjin.net> Message-ID: <1252244621-sup-3579@ntdws12.chass.utoronto.ca> Excerpts from William Morgan's message of Sun Sep 06 09:22:21 -0400 2009: > The former is "correct". But if you put in the latter, it should be > converted automatically, and written out as the former when you exit > Sup. Ok, so my sources.yaml is 'good.' > I'm a little disturbed that you're still seeing problems with this. Can > you confirm that SerializeLabelsNicely#after_unmarshal! (source.rb circa > line 167) is being run in your sources after they're loaded from > sources.yaml? That should ensure that you end up with a Set of symbols > when Sup's running, regardless of what's in the file. Yes, I added a debug in that method and saw a message for each source. > The other source of bad labels is the serialized version of the messages > stored by Xapian, if you use Xapian. But if you've regenerated your > Xapian index recently, this shouldn't be a problem... I generated this about 2 days ago with a current (at the time) head of next. > It strikes me now that the other possible source of non-symbol labels is > a hook like before-add. Are you using that to call Message#add_label > with a string argument, by any chance? I was doing this. I had a hook from my very early sup days still in play. Since it was actually completely redundant (procmail filtering and autolabelling via sources) now, I've simply removed it. > If none of the above, can you post the latest version of the exceptions > you're seeing? I still can't load sup without coercing strings to symbols in the << method though. The exception log is attached (from a clean startup). Thanks -Ben -- Ben Walton Systems Programmer - CHASS University of Toronto C:416.407.5610 | W:416.978.4302 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu Contact me to arrange for a CAcert assurance meeting. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: exception-log.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: