Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Exception reading contacts.txt
@ 2007-10-09 13:35 Steve Tooke
  2007-10-09 13:44 ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Tooke @ 2007-10-09 13:35 UTC (permalink / raw)


Resend as caught-out by default setting on mailing list... although I've subscribed now anyway!

Really enjoying using sup at the moment, great piece of software.

I've just had this problem with parsing contacts.txt

The problem was: 'can't parse /Users/stevet/.sup/contacts.txt line "Anthony
Dobson: anthony at collierdobson.com\n"' (error type RuntimeError)
A backtrace follows:
/usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/contact.rb:13:in
`initialize': can't parse /Users/stevet/.sup/contacts.txt line "Anthony Dobson:
anthony at collierdobson.com\n" (RuntimeError)
        from /usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/contact.rb:12:in
`foreach'
        from /usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/contact.rb:12:in
`initialize'
        from /usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:107:in `new'
        from /usr/local/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup.rb:107:in `start'
        from /usr/local/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup:88
        from /usr/local/bin/sup:16:in `load'   
        from /usr/local/bin/sup:16

There is only one line in the contacts.txt file.

Regards,

-- 
Steve Tooke
steve.tooke at gmail.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] Exception reading contacts.txt
  2007-10-09 13:35 [sup-talk] Exception reading contacts.txt Steve Tooke
@ 2007-10-09 13:44 ` William Morgan
  2007-10-09 13:58   ` Steve Tooke
  0 siblings, 1 reply; 4+ messages in thread
From: William Morgan @ 2007-10-09 13:44 UTC (permalink / raw)


Excerpts from Steve Tooke's message of Tue Oct 09 06:35:36 -0700 2007:
> The problem was: 'can't parse /Users/stevet/.sup/contacts.txt line "Anthony
> Dobson: anthony at collierdobson.com\n"' (error type RuntimeError)

Hm, Sup doesn't expect aliases to have spaces. Sup's expecting something
like "tony: Anthony Dobson <anthony at blah.com>". Did you add that line by
hand, or did you use Sup to make the alias?

That translates into two bugfixes for me:
1. Don't allow spaces when inputting a new alias name.
2. Don't crash completely when contacts.txt isn' what you expect.

-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] Exception reading contacts.txt
  2007-10-09 13:44 ` William Morgan
@ 2007-10-09 13:58   ` Steve Tooke
  2007-10-27 19:08     ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Tooke @ 2007-10-09 13:58 UTC (permalink / raw)


Excerpts from William Morgan's message of Tue Oct 09 14:44:10 +0100 2007:
> Excerpts from Steve Tooke's message of Tue Oct 09 06:35:36 -0700 2007:
> > The problem was: 'can't parse /Users/stevet/.sup/contacts.txt line "Anthony
> > Dobson: anthony at blah.com\n"' (error type RuntimeError)
> 
> Hm, Sup doesn't expect aliases to have spaces. Sup's expecting something
> like "tony: Anthony Dobson <anthony at blah.com>". Did you add that line by
> hand, or did you use Sup to make the alias?

Ahh, that makes sense.

Originally, I had used Sup but that hadn't worked, so assumed that it was related to the way the email address was formatted.

Sup did allow me to enter a space in the alias!

Thanks for the quick reply!

Steve

> 1. Don't allow spaces when inputting a new alias name.
> 2. Don't crash completely when contacts.txt isn' what you expect.


-- 
Steve Tooke
steve.tooke at gmail.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] Exception reading contacts.txt
  2007-10-09 13:58   ` Steve Tooke
@ 2007-10-27 19:08     ` William Morgan
  0 siblings, 0 replies; 4+ messages in thread
From: William Morgan @ 2007-10-27 19:08 UTC (permalink / raw)


Excerpts from Steve Tooke's message of Tue Oct 09 06:58:51 -0700 2007:
> Sup did allow me to enter a space in the alias!

Spaces in aliases should now be fine.

-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-27 19:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-09 13:35 [sup-talk] Exception reading contacts.txt Steve Tooke
2007-10-09 13:44 ` William Morgan
2007-10-09 13:58   ` Steve Tooke
2007-10-27 19:08     ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox