Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: "Edward Z. Yang" <ezyang@MIT.EDU>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] Exception
Date: Thu, 30 Sep 2010 15:19:38 -0400	[thread overview]
Message-ID: <1285874266-sup-5868@ezyang> (raw)

I got the following exception

/home/ezyang/Dev/sup/lib/sup/index.rb:537:in `find_docid'
/home/ezyang/Dev/sup/lib/sup/index.rb:542:in `find_doc'
/home/ezyang/Dev/sup/lib/sup/index.rb:552:in `get_entry'
/home/ezyang/Dev/sup/lib/sup/index.rb:195:in `build_message'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/ezyang/Dev/sup/lib/sup/index.rb:561:in `synchronize'
/home/ezyang/Dev/sup/lib/sup/index.rb:195:in `build_message'
/home/ezyang/Dev/sup/lib/sup/index.rb:150
/home/ezyang/Dev/sup/lib/sup/index.rb:230:in `call'
/home/ezyang/Dev/sup/lib/sup/index.rb:230:in `load_contacts'
/home/ezyang/Dev/sup/lib/sup/index.rb:150:in `each_id_by_date'
/home/ezyang/Dev/sup/lib/sup/index.rb:245:in `each_id'
/home/ezyang/Dev/sup/lib/sup/index.rb:245:in `each'
/home/ezyang/Dev/sup/lib/sup/index.rb:245:in `each_id'
/home/ezyang/Dev/sup/lib/sup/index.rb:150:in `each_id_by_date'
/home/ezyang/Dev/sup/lib/sup/index.rb:228:in `load_contacts'
/home/ezyang/Dev/sup/lib/sup/util.rb:596:in `send'
/home/ezyang/Dev/sup/lib/sup/util.rb:596:in `method_missing'
/home/ezyang/Dev/sup/lib/sup/buffer.rb:548:in `ask_for_contacts'
/home/ezyang/Dev/sup/lib/sup/util.rb:596:in `send'
/home/ezyang/Dev/sup/lib/sup/util.rb:596:in `method_missing'
/home/ezyang/Dev/sup/lib/sup/modes/compose-mode.rb:25:in `spawn_nicely'
/home/ezyang/Dev/sup/bin/sup:311

Caused by this failed assertion:

  def find_docid id
    docids = term_docids(mkterm(:msgid,id))
    fail unless docids.size <= 1
    docids.first
  end

So I guess my index is corrupted in some weird way (probably I managed
to create two mails with the same docid). I've worked around it by commenting
out the assert, but any idea how to fix my index?

Edward
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


             reply	other threads:[~2010-09-30 19:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-30 19:19 Edward Z. Yang [this message]
2010-10-01  4:52 ` Michael Stipicevic
2010-10-01 17:13   ` Edward Z. Yang

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=1285874266-sup-5868@ezyang \
    --to=ezyang@mit.edu \
    --cc=sup-devel@rubyforge.org \
    /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