Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Hamish <dmishd@gmail.com>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] turnsole crash on start up
Date: Mon, 02 May 2011 23:17:56 +0100	[thread overview]
Message-ID: <1304373950-sup-1962@whisper> (raw)

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 `<main>'

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 <class:HeliotropeServer>
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 <class:HeliotropeServer>
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


             reply	other threads:[~2011-05-02 23:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-02 22:17 Hamish [this message]
2011-05-04 16:18 ` 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=1304373950-sup-1962@whisper \
    --to=dmishd@gmail.com \
    --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