Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: benoit.pierre@gmail.com (Benoît PIERRE)
Subject: [sup-talk] crash when sup-syncing to xapian
Date: Tue, 18 Aug 2009 20:20:41 +0200	[thread overview]
Message-ID: <1250619511-sup-2827@localdomain> (raw)
In-Reply-To: <1250616603-sup-5612@ntdws12.chass.utoronto.ca>

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: <http://rubyforge.org/pipermail/sup-talk/attachments/20090818/4a4ab3f7/attachment.bin>


  reply	other threads:[~2009-08-18 18:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-18 17:35 Ben Walton
2009-08-18 18:20 ` Benoît PIERRE [this message]
2009-08-18 18:42   ` Rich Lane
2009-08-18 19:17     ` Benoît PIERRE
2009-08-18 19:52       ` Rich Lane
2009-08-18 20:14         ` Benoît PIERRE
2009-08-19  0:03           ` Ben Walton
2009-08-19 18:39 ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1250619511-sup-2827@localdomain \
    --to=benoit.pierre@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox