From: William Morgan <wmorgan-sup@masanjin.net>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] exception in mainline
Date: Mon, 02 Nov 2009 08:03:41 -0800 [thread overview]
Message-ID: <1257177587-sup-5889@masanjin.net> (raw)
In-Reply-To: <1256749083-sup-3681@arrakis.es.net>
Hi Jon,
Reformatted excerpts from Jon Dugan's message of 2009-10-28:
> i now get this when i start sup. i'm running mainline.
>
> --- RuntimeError from thread: load threads for thread-index-mode
> wrong id called on nil
> ./lib/sup.rb:17:in `id'
> ./lib/sup/modes/thread-index-mode.rb:225:in `update'
I posted this workaround patch earlier. I'm working on a better solution in the
meanwhile.
diff --git a/lib/sup/modes/thread-index-mode.rb
b/lib/sup/modes/thread-index-mode.rb
index 82f258b..17d5836 100644
--- a/lib/sup/modes/thread-index-mode.rb
+++ b/lib/sup/modes/thread-index-mode.rb
@@ -222,7 +222,7 @@ EOS
def update
@mutex.synchronize do
## let's see you do THIS in python
- @threads = @ts.threads.select { |t| !@hidden_threads[t] }.sort_by { |t| [t.date, t.first.id] }.reverse
+ @threads = @ts.threads.select { |t| !@hidden_threads[t] }.select { |t| t.first }.sort_by { |t| [t.date, t.first.id] }.reverse
@size_widgets = @threads.map { |t| size_widget_for_thread t }
@size_widget_width = @size_widgets.max_of { |w| w.display_length }
end
> ./lib/sup/hook.rb:122:in `sort_by'
> ./lib/sup/modes/thread-index-mode.rb:225:in `each'
> ./lib/sup/modes/thread-index-mode.rb:225:in `sort_by'
> ./lib/sup/modes/thread-index-mode.rb:225:in `update'
> ./lib/sup/modes/thread-index-mode.rb:223:in `synchronize'
> ./lib/sup/modes/thread-index-mode.rb:223:in `update'
> ./lib/sup/modes/thread-index-mode.rb:628:in `__unprotected_load_n_threads'
> ./lib/sup/thread.rb:334:in `load_n_threads'
> ./lib/sup/xapian_index.rb:151:in `each_id_by_date'
> ./lib/sup/xapian_index.rb:144:in `each_id'
> ./lib/sup/xapian_index.rb:144:in `each'
> ./lib/sup/xapian_index.rb:144:in `each_id'
> ./lib/sup/xapian_index.rb:151:in `each_id_by_date'
> ./lib/sup/thread.rb:328:in `load_n_threads'
> ./lib/sup/modes/thread-index-mode.rb:625:in `__unprotected_load_n_threads'
> (eval):12:in `load_n_threads'
> ./lib/sup/modes/thread-index-mode.rb:609:in `load_n_threads_background'
> ./lib/sup.rb:77:in `reporting_thread'
> ./lib/sup.rb:75:in `initialize'
> ./lib/sup.rb:75:in `new'
> ./lib/sup.rb:75:in `reporting_thread'
> ./lib/sup/modes/thread-index-mode.rb:608:in `load_n_threads_background'
> ./lib/sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads'
> (eval):12:in `load_threads'
> bin/sup:199
>
--
William <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
prev parent reply other threads:[~2009-11-02 16:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-28 16:59 Jon Dugan
2009-11-02 16:03 ` William Morgan [this message]
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=1257177587-sup-5889@masanjin.net \
--to=wmorgan-sup@masanjin.net \
--cc=sup-talk@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