Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `content_width' for nil:NilClass #251

Closed
eMBee opened this issue Mar 10, 2014 · 4 comments
Closed

undefined method `content_width' for nil:NilClass #251

eMBee opened this issue Mar 10, 2014 · 4 comments
Labels

Comments

@eMBee
Copy link
Contributor

eMBee commented Mar 10, 2014

got his after hitting x a few times...

--- NoMethodError from thread: main
undefined method `content_width' for nil:NilClass
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:970:in `from_width'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:884:in `block in text_for_thread_at'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:883:in `each'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:883:in `each_with_index'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:883:in `text_for_thread_at'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:825:in `block in regen_text'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/util.rb:547:in `block in map_with_index'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/util.rb:547:in `each'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/util.rb:547:in `each_with_index'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/util.rb:547:in `map_with_index'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:825:in `regen_text'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:265:in `update'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:751:in `add_or_unhide'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/modes/thread_index_mode.rb:199:in `handle_added_update'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/update.rb:26:in `block in relay'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/update.rb:26:in `each'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/update.rb:26:in `relay'
(eval):1:in `relay'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/poll.rb:228:in `block in poll_from'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/mbox.rb:143:in `poll'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/poll.rb:201:in `poll_from'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/util.rb:649:in `method_missing'
/home/embee/.rvm/gems/ruby-1.9.3-p545/gems/sup-0.15.4/lib/sup/sent.rb:33:in `block in write_sent_message'
@gauteh
Copy link
Member

gauteh commented Mar 10, 2014

Related to #190, I think it happens when you close a buffer/mode when it is still loading.

@eMBee
Copy link
Contributor Author

eMBee commented Mar 10, 2014

possible,
given my refresh problem in #248 it is likely that i had some incompletely loaded buffers.
i was hitting x in quick succession to close all the buffers (which it did, just not quite how i expected it :-), so i can't tell on which buffer it crashed.

@gauteh
Copy link
Member

gauteh commented Mar 10, 2014

Yeah, it shouldn't be like this :) But as far as I can see both #190 and these are a bit hard to fix without rewriting the UI code (which at the moment is not nicely separated from the rest).

@gauteh
Copy link
Member

gauteh commented Oct 7, 2014

Hopefully fixed by #190 fix.

@gauteh gauteh closed this as completed Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants