From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.117.16 with SMTP id p16cs471345agc; Mon, 2 Nov 2009 08:08:12 -0800 (PST) Received: by 10.224.27.152 with SMTP id i24mr2924216qac.269.1257178091368; Mon, 02 Nov 2009 08:08:11 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 36si7178181qyk.126.2009.11.02.08.08.11; Mon, 02 Nov 2009 08:08:11 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id DD4A81598080; Mon, 2 Nov 2009 11:08:10 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 4F8A41598031 for ; Mon, 2 Nov 2009 11:03:43 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1N4zNe-0002Cp-MP for sup-talk@rubyforge.org; Mon, 02 Nov 2009 08:03:42 -0800 From: William Morgan To: sup-talk In-reply-to: <1256749083-sup-3681@arrakis.es.net> References: <1256749083-sup-3681@arrakis.es.net> Date: Mon, 02 Nov 2009 08:03:41 -0800 Message-Id: <1257177587-sup-5889@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] exception in mainline X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org 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 _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk