Subject: [sup-talk] exception while importing to xapian

From: [email-masked] (Ben Walton)
Date: Sat, 29 Aug 2009 14:35:03 -0400

I just tried again to switch to xapian and I got the following:

$ SUP_INDEX=xapian ruby -Ilib bin/sup-sync --all --all-sources --restore ~/.sup/dumpfile 
Loading state dump from /cquest/roger/staff0/systems/bwalton/.sup/dumpfile...
Read 72360 entries from dump file.
Scanning maildir:///u/bwalton/Maildir/...
[Sat Aug 29 14:29:11 -0400 2009] hook: read 'before-add-message' from
/cquest/roger/staff0/systems/bwalton/.sup/hooks/before-add-message.rb
./lib/sup/xapian_index.rb:365:in `find_docid': undefined method `tap'
for []:Array (NoMethodError)
        from ./lib/sup/xapian_index.rb:369:in `find_doc'
        from ./lib/sup/xapian_index.rb:379:in `get_entry'
        from ./lib/sup/xapian_index.rb:68:in `build_message'
        from /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
        from ./lib/sup/xapian_index.rb:388:in `synchronize'
        from ./lib/sup/xapian_index.rb:68:in `build_message'
        from bin/sup-sync:149
        from ./lib/sup/poll.rb:160:in `each_message_from'
         ... 8 levels...
        from ./lib/sup/util.rb:520:in `method_missing'
        from bin/sup-sync:146
        from bin/sup-sync:141:in `each'
        from bin/sup-sync:141

This happened with 806a067 (the current tip of next).  Exception log
attached.

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: sup-exception-log.txt
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090829/c6d25c82/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090829/c6d25c82/attachment.bin>

---

From: [email-masked] (Blake Burkhart)
Date: Sun, 30 Aug 2009 15:14:56 -0500

Excerpts from Ben Walton's message of Sat Aug 29 13:35:03 -0500 2009:
>  [...]

I am getting this same error myself. I'm running Mac OS 10.5 with ruby 1.8.6.
Are you also using ruby 1.8.6? I think the tap method is in ruby 1.8.7 and
later. Actually a quick google shows it may even be ruby 1.9 only, or 1.9 and
backported from there.

Is it necessary to use this method? Is there an alternate way to do this?

-- Blake Burkhart

---

From: [email-masked] (Ben Walton)
Date: Sun, 30 Aug 2009 16:21:30 -0400

> later. Actually a quick google shows it may even be ruby 1.9 only, or 1.9 and

Actually, I'm on 1.8.5 (the version shipped with rhel5).  Sup may
finally force me to update it though.

-Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090830/fa051bea/attachment.bin>

---

From: [email-masked] (Rich Lane)
Date: Sun, 30 Aug 2009 16:47:59 -0400

> Is it necessary to use this method? Is there an alternate way to do this?

Yeah, this was just a 1.8.7-ism. I've sent a patch to fix it.