* [sup-talk] exception with undomanager
@ 2009-06-07 12:33 Ben Walton
2009-06-08 17:18 ` William Morgan
0 siblings, 1 reply; 7+ messages in thread
From: Ben Walton @ 2009-06-07 12:33 UTC (permalink / raw)
Hi All,
I bumped into this this morning. I've not used the undo stuff much,
but I tried it today. The (rough) sequence of events leading to this
was: I archived two threads separately and then decided I wanted to
undo the first of two actions. I hit u once and got the latest thread
back and when I hit it again, sup crashed. If I get a chance I'll
look into it myself, but I'm tossing it out for people more familiar
with these bits to see also.
Thanks
-Ben
$ less ~/.sup/exception-log.txt
--- NoMethodError from thread: main
undefined method `content_width' for nil:NilClass
./sup/modes/thread-index-mode.rb:868:in `from_width'
./sup/modes/thread-index-mode.rb:793:in `text_for_thread_at'
/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`each_with_index'
./sup/modes/thread-index-mode.rb:792:in `each'
./sup/modes/thread-index-mode.rb:792:in `each_with_index'
./sup/modes/thread-index-mode.rb:792:in `text_for_thread_at'
./sup/modes/thread-index-mode.rb:753:in `regen_text'
./sup/util.rb:346:in `map_with_index'
/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`each_with_index'
./sup/util.rb:346:in `each'
./sup/util.rb:346:in `each_with_index'
./sup/util.rb:346:in `map_with_index'
./sup/modes/thread-index-mode.rb:753:in `regen_text'
./sup/modes/thread-index-mode.rb:228:in `update'
./sup/modes/thread-index-mode.rb:697:in `add_or_unhide'
./sup/modes/thread-index-mode.rb:319:in `actually_toggle_spammed'
./sup/undo.rb:28:in `call'
./sup/undo.rb:28:in `undo'
./sup/undo.rb:28:in `each'
./sup/undo.rb:28:in `undo'
./sup/util.rb:505:in `send'
./sup/util.rb:505:in `method_missing'
./sup/modes/thread-index-mode.rb:217:in `undo'
./sup/mode.rb:50:in `send'
./sup/mode.rb:50:in `handle_input'
./sup/buffer.rb:249:in `handle_input'
../bin/sup:237
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090607/3fcc2660/attachment.bin>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [sup-talk] exception with undomanager
2009-06-07 12:33 [sup-talk] exception with undomanager Ben Walton
@ 2009-06-08 17:18 ` William Morgan
2009-06-08 18:18 ` Edward Z. Yang
0 siblings, 1 reply; 7+ messages in thread
From: William Morgan @ 2009-06-08 17:18 UTC (permalink / raw)
Reformatted excerpts from Ben Walton's message of 2009-06-07:
> I bumped into this this morning. I've not used the undo stuff much,
> but I tried it today. The (rough) sequence of events leading to this
> was: I archived two threads separately and then decided I wanted to
> undo the first of two actions. I hit u once and got the latest thread
> back and when I hit it again, sup crashed. If I get a chance I'll
> look into it myself, but I'm tossing it out for people more familiar
> with these bits to see also.
Something like this seems to happen fairly frequently. I think it's a
(shudder) threading issue. Something is killing a buffer (possibly the
user) while it's being redrawn and this happens. I need to stick another
mutex in there somewhere. Or rewrite Sup for Ruby 1.9 with fibers
instead of threads.
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [sup-talk] exception with undomanager
2009-06-08 17:18 ` William Morgan
@ 2009-06-08 18:18 ` Edward Z. Yang
2009-06-08 18:50 ` Ben Walton
2009-06-08 18:59 ` William Morgan
0 siblings, 2 replies; 7+ messages in thread
From: Edward Z. Yang @ 2009-06-08 18:18 UTC (permalink / raw)
Excerpts from William Morgan's message of Mon Jun 08 13:18:30 -0400 2009:
> Something like this seems to happen fairly frequently. I think it's a
> (shudder) threading issue. Something is killing a buffer (possibly the
> user) while it's being redrawn and this happens. I need to stick another
> mutex in there somewhere. Or rewrite Sup for Ruby 1.9 with fibers
> instead of threads.
The unfortunate bit about Ruby 1.9 is that the majority of libraries sup uses
aren't on 1.9 yet...
Cheers,
Edward
^ permalink raw reply [flat|nested] 7+ messages in thread
* [sup-talk] exception with undomanager
2009-06-08 18:18 ` Edward Z. Yang
@ 2009-06-08 18:50 ` Ben Walton
2009-06-08 19:02 ` Edward Z. Yang
2009-06-08 18:59 ` William Morgan
1 sibling, 1 reply; 7+ messages in thread
From: Ben Walton @ 2009-06-08 18:50 UTC (permalink / raw)
Excerpts from Edward Z. Yang's message of Mon Jun 08 14:18:41 -0400 2009:
> The unfortunate bit about Ruby 1.9 is that the majority of libraries sup uses
> aren't on 1.9 yet...
...and some platforms don't have packages for it yet, which puts more
onus on the user to get it up and going...
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090608/836af547/attachment.bin>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [sup-talk] exception with undomanager
2009-06-08 18:18 ` Edward Z. Yang
2009-06-08 18:50 ` Ben Walton
@ 2009-06-08 18:59 ` William Morgan
1 sibling, 0 replies; 7+ messages in thread
From: William Morgan @ 2009-06-08 18:59 UTC (permalink / raw)
Reformatted excerpts from Edward Z. Yang's message of 2009-06-08:
> The unfortunate bit about Ruby 1.9 is that the majority of libraries
> sup uses aren't on 1.9 yet...
Not a serious suggestion. One rewrite going at a time is my rule. :)
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [sup-talk] exception with undomanager
2009-06-08 18:50 ` Ben Walton
@ 2009-06-08 19:02 ` Edward Z. Yang
2009-06-08 19:20 ` Ben Walton
0 siblings, 1 reply; 7+ messages in thread
From: Edward Z. Yang @ 2009-06-08 19:02 UTC (permalink / raw)
Excerpts from Ben Walton's message of Mon Jun 08 14:50:19 -0400 2009:
> ...and some platforms don't have packages for it yet, which puts more
> onus on the user to get it up and going...
Ruby is basically not usable with your package manager. You *have* to
roll the gems yourself.
Cheers,
Edward
^ permalink raw reply [flat|nested] 7+ messages in thread
* [sup-talk] exception with undomanager
2009-06-08 19:02 ` Edward Z. Yang
@ 2009-06-08 19:20 ` Ben Walton
0 siblings, 0 replies; 7+ messages in thread
From: Ben Walton @ 2009-06-08 19:20 UTC (permalink / raw)
Excerpts from Edward Z. Yang's message of Mon Jun 08 15:02:28 -0400 2009:
> Ruby is basically not usable with your package manager. You *have* to
> roll the gems yourself.
I realize this. Gems are awesome and gems suck. I'm talking about
the matz ruby interpreter itself. In some instances, not only would
the user need all of the gems, but they'd need a 1.9 ruby too...that a
big commitment to run a mail client.
[As a side note, Debian/Ubuntu do package many of the gems, but it's a
round hole, square peg affair.]
Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090608/33159422/attachment.bin>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-06-08 19:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-07 12:33 [sup-talk] exception with undomanager Ben Walton
2009-06-08 17:18 ` William Morgan
2009-06-08 18:18 ` Edward Z. Yang
2009-06-08 18:50 ` Ben Walton
2009-06-08 19:02 ` Edward Z. Yang
2009-06-08 19:20 ` Ben Walton
2009-06-08 18:59 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox