From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.188.165 with SMTP id gb5cs454151vdc; Mon, 2 May 2011 16:13:49 -0700 (PDT) Received: by 10.52.177.196 with SMTP id cs4mr5551216vdc.279.1304378029431; Mon, 02 May 2011 16:13:49 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id gx10si7815562vbb.36.2011.05.02.16.13.49; Mon, 02 May 2011 16:13:49 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-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-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 035191858372; Mon, 2 May 2011 19:13:49 -0400 (EDT) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by rubyforge.org (Postfix) with ESMTP id 03FAA18583B6 for ; Mon, 2 May 2011 18:25:36 -0400 (EDT) Received: by wwd20 with SMTP id 20so6067118wwd.23 for ; Mon, 02 May 2011 15:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:subject:from:to:date:message-id :user-agent:content-transfer-encoding; bh=za+wBPHACXEP/Ix6Q8Wd92Y87XWjH5FqsJZADvkoQ38=; b=t1lFnZqHgwZ1YmMjRKzUha7o1vpoxGbDQn7CHMuhBLlCtCeb7MuGnscGiYyLWB9Qr0 CJxNy/x9c9lkY7O1cnwfLQqBQ6ALgtkvpIp9o9r56itP4s19hOgHfKkWHYSJ1xGPEihM DS1oNI4mrKnmOS0PPqneSVRU2U4b7KRKmsX1g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:from:to:date:message-id:user-agent :content-transfer-encoding; b=Jt8yOiH0eTYJbVPt4JngyABru14j5kSjVnMWbhHXvions4MjSVADjkFfbbo2iIMb2M 0l9AuZxUUdoHgyOMiCHVyKjaCb4UoN6u0zcKcTFFlzHh1GG24wdA9s6YmVSSDF439pxX W1m3JcmqGmU/gd8IG57HvulSqs2mt75W8TxiE= Received: by 10.216.150.153 with SMTP id z25mr5515698wej.89.1304374677893; Mon, 02 May 2011 15:17:57 -0700 (PDT) Received: from localhost (cpc12-cmbg15-2-0-cust81.5-4.cable.virginmedia.com [86.30.247.82]) by mx.google.com with ESMTPS id n2sm2887025wej.46.2011.05.02.15.17.55 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 May 2011 15:17:57 -0700 (PDT) From: Hamish To: sup-devel Date: Mon, 02 May 2011 23:17:56 +0100 Message-Id: <1304373950-sup-1962@whisper> User-Agent: Sup/git Subject: [sup-devel] turnsole crash on start up X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion 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-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org I've finally got around to playing with turnsole, and it crashes out immediately :/ $ ruby1.9.1 -Ilib -I../heliotrope/lib bin/turnsole /home/mish/dev/sup/turnsole/lib/turnsole/models.rb:88:in `at': can't convert String into an exact number (TypeError) from /home/mish/dev/sup/turnsole/lib/turnsole/models.rb:88:in `initialize' from /home/mish/dev/sup/turnsole/lib/turnsole/client.rb:34:in `new' from /home/mish/dev/sup/turnsole/lib/turnsole/client.rb:34:in `block (2 levels) in search' from /home/mish/dev/sup/turnsole/lib/turnsole/client.rb:34:in `map' from /home/mish/dev/sup/turnsole/lib/turnsole/client.rb:34:in `block in search' from /home/mish/dev/sup/turnsole/lib/turnsole/ui.rb:76:in `call' from /home/mish/dev/sup/turnsole/lib/turnsole/ui.rb:76:in `step' from bin/turnsole:134:in `
' I tried in the web browser, and a search appears to work fine (and is impressively quick :) for a couple of terms I tried. But when I click on the inbox link, I go to URL: http://localhost:8042/search?q=~inbox and get a big old error page :( The relevant parts are: TypeError at /search false can't be coerced into Fixnum file: heliotrope-server location: - line: 377 [snip] bin/heliotrope-server in - 377. date = escape_html Time.at(thread[:date]).strftime("%Y/%m/%d %H:%M") bin/heliotrope-server in strftime 377. date = escape_html Time.at(thread[:date]).strftime("%Y/%m/%d %H:%M") bin/heliotrope-server in threadinfo_to_html 377. date = escape_html Time.at(thread[:date]).strftime("%Y/%m/%d %H:%M") bin/heliotrope-server in block (2 levels) in 157. results.map { |r| threadinfo_to_html r }.join + bin/heliotrope-server in map 157. results.map { |r| threadinfo_to_html r }.join + bin/heliotrope-server in block in 157. results.map { |r| threadinfo_to_html r }.join + /usr/lib/ruby/1.9.1/webrick/httpserver.rb in service 111. si.service(req, res) /usr/lib/ruby/1.9.1/webrick/httpserver.rb in run 70. server.service(req, res) /usr/lib/ruby/1.9.1/webrick/server.rb in block in start_thread 183. block ? block.call(sock) : run(sock) [snip] Any ideas? Does heliotrope have a console like sup that I could try tracking down which message this would be? (I'm using maildir in case it makes a difference). Hamish Downer _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel