Hi. I''m having trouble getting sup working. I''m on Mac OS X
10.5.2,
using the git repo. The binaries and libraries link up fine.
sup-add throws this error:
|---> sup-add mbox:/Volumes/Mail/mail01.mbox --unusual --
archive
~
[Tue Apr 15 06:59:58 +0100 2008] using character set encoding "UTF-8"
[Tue Apr 15 07:00:01 +0100 2008] crypto: detected gpg binary in /opt/
local/bin/gpg
[Tue Apr 15 07:00:01 +0100 2008] locking /Users/bear/.sup/lock...
Adding mbox:/Volumes/Mail/mail01.mbox...
[Tue Apr 15 07:00:02 +0100 2008] saving index and sources...
/opt/local/lib/ruby/site_ruby/1.8/sup.rb:76:in `initialize'':
can''t
convert File::Stat into Integer (TypeError)
from /opt/local/lib/ruby/site_ruby/1.8/sup.rb:76:in `open''
from /opt/local/lib/ruby/site_ruby/1.8/sup.rb:76:in `save_yaml_obj''
from /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:519:in
`save_sources''
from /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:115:in `save''
from /Users/bear/Sys/all/sup-add:120
Same whatever mbox I use.
Then sup is also broken:
--- RuntimeError from thread: load threads for thread-index-mode
invalid source 2
/opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:325:in `build_message''
/opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:228:in `each_id_by_date''
/opt/local/lib/ruby/site_ruby/1.8/sup/thread.rb:330:in `call''
/opt/local/lib/ruby/site_ruby/1.8/sup/thread.rb:330:in `load_n_threads''
/opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:228:in `each_id_by_date''
/opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:228:in `each''
/opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:228:in `each_id_by_date''
/opt/local/lib/ruby/site_ruby/1.8/sup/thread.rb:326:in `load_n_threads''
/opt/local/lib/ruby/site_ruby/1.8/sup/modes/thread-index-mode.rb:
493:in `__unprotected_load_n_threads''
(eval):12:in `load_n_threads''
/opt/local/lib/ruby/site_ruby/1.8/sup/modes/thread-index-mode.rb:
477:in `load_n_threads_background''
/opt/local/lib/ruby/site_ruby/1.8/sup.rb:60:in `reporting_thread''
/opt/local/lib/ruby/site_ruby/1.8/sup.rb:58:in `initialize''
/opt/local/lib/ruby/site_ruby/1.8/sup.rb:58:in `new''
/opt/local/lib/ruby/site_ruby/1.8/sup.rb:58:in `reporting_thread''
/opt/local/lib/ruby/site_ruby/1.8/sup/modes/thread-index-mode.rb:
476:in `load_n_threads_background''
/opt/local/lib/ruby/site_ruby/1.8/sup/modes/thread-index-mode.rb:
546:in `__unprotected_load_threads''
(eval):12:in `load_threads''
/Users/bear/Sys/all/sup:200
I presume the one is a consequence of the other, but I don''t know how
to fix it. Can you help?
Chris
Excerpts from Christopher Marsh''s message of Tue Apr 15 02:15:05 -0400 2008:> > |---> sup-add mbox:/Volumes/Mail/mail01.mbox --unusual -- > archiveI''ve found that I have to use URIs of the form <type>://<path> Try sup-add --unusual --archive mbox:///Volumes/Mail/mail01.mbox (Note that help says options should come first; I don''t know if it actually cares.) If that doesn''t work, hopefully someone more knowledgeable will come along soon. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 235 bytes Desc: not available Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080415/450b6d9b/attachment.bin
Reformatted excerpts from Christopher Marsh''s message of 2008-04-14:> /opt/local/lib/ruby/site_ruby/1.8/sup.rb:76:in `initialize'': can''t convert File::Stat into Integer (TypeError)Interesting. You''ve uncovered a legitimate bug in Sup, but it''s a bug that remains hidden until you have just the right combination of wrong things. You have a couple easy workarounds available to you. If you "mv ~/.sup/sources.yaml.bak ~/.sup/sources.yaml", that should fix it. You could also delete the entire ~/.sup directory, if you feel like starting afresh. I''ve also fixed the bug in git master. -- William <wmorgan-sup at masanjin.net>