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.
--- ArgumentError from thread: load threads for thread-index-mode
expecting a symbol
./sup/label.rb:64:in `<<'
./sup/util.rb:520:in `send'
./sup/util.rb:520:in `method_missing'
./sup/modes/thread-index-mode.rb:635:in `__unprotected_load_n_threads'
/usr/lib/ruby/1.8/set.rb:189:in `each'
/usr/lib/ruby/1.8/set.rb:189:in `each_key'
/usr/lib/ruby/1.8/set.rb:189:in `each'
./sup/modes/thread-index-mode.rb:635:in `__unprotected_load_n_threads'
./sup/modes/thread-index-mode.rb:635:in `each'
./sup/modes/thread-index-mode.rb:635:in `__unprotected_load_n_threads'
(eval):12:in `load_n_threads'
./sup/modes/thread-index-mode.rb:609:in `load_n_threads_background'
./sup.rb:77:in `reporting_thread'
./sup.rb:75:in `initialize'
./sup.rb:75:in `new'
./sup.rb:75:in `reporting_thread'
./sup/modes/thread-index-mode.rb:608:in `load_n_threads_background'
./sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads'
(eval):12:in `load_threads'
../bin/sup:196

Attachment: signature.asc
Description: PGP signature

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to