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

Crash creating new stream message in streams with no previous conversation. #247

Closed
sumanthvrao opened this issue Jan 9, 2019 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted This issue should be clear enough to work on high priority should be done as soon as possible in progress

Comments

@sumanthvrao
Copy link
Member

sumanthvrao commented Jan 9, 2019

The c Hot Key works in creating a new stream message works in streams which has previous conversations. However the terminal crashes when used in streams which do not have any previous conversation. Expecting the Key to create a new message with stream set to current one and topic blank.

Steps to reproduce bug in development environment (newest version) :

  1. logged in as Iago@zulip.com
  2. Use c in to create new messages in streams with no convo like #sales, #support
  3. ZT crashes with the following error message
File "/home/sumanthvrao/.local/share/virtualenvs/zulip-terminal-sRIAC_7x/lib/python3.6/site-packages/urwid/container.py", line 1429, in _set_focus_position
    raise IndexError("No Pile child widget at position %s" % (position,))
IndexError: No Pile child widget at position 0
Zulip Terminal has crashed!

A workaround which avoids the error is to change Stream in message header (to #sales for example) when c is used to create new messages in streams with previous conversation.

@amanagr amanagr added bug Something isn't working help wanted This issue should be clear enough to work on good first issue Good for newcomers high priority should be done as soon as possible next major release labels Jan 9, 2019
@amanagr
Copy link
Member

amanagr commented Jan 9, 2019

@sumanthvrao thanks for reporting this.

sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Jan 12, 2019
c HotKey used to crash zt when used in streams
with no previous messages. c now calls stream_box_view
while opening footer and sets name to stream name.

Fixes: zulip#247.
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Jan 13, 2019
c, r and R HotKey used to crash zt when used in streams
with no previous messages. c now calls stream_box_view
while opening footer and sets name to stream name.
r and R perform noop.

Fixes: zulip#247.

view: Fix support for HotKeys.
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Jan 13, 2019
c, r and R HotKey used to crash zt when used in streams
with no previous messages. c now calls stream_box_view
while opening footer and sets name to stream name.
r and R perform noop.

Fixes: zulip#247.

view: Fix support for HotKeys.
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Jan 14, 2019
c, r, R, +, * and J/Pagedown HotKey used to crash zt
when used in streams with no previous messages.
c now calls stream_box_view while opening footer
and sets name to stream name. r, R, +, * and
J/Pagedown perform noop.

Fixes: zulip#247.
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Jan 15, 2019
c, r, R, +, * and J/Pagedown HotKey used to crash zt
when used in streams with no previous messages.
c now calls stream_box_view while opening footer
and sets name to stream name. r, R, +, * and
J/Pagedown perform noop.

Fixes: zulip#247.
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Jan 17, 2019
c, r, R, +, * ,J/Pagedown and K/Pageup HotKey
used to crash zt when used in streams with
no previous messages. c now calls
stream_box_view while opening footer
and sets name to stream name. r, R, +, * and
J/Pagedown and K/Pageup perform noop.

Fixes: zulip#247.
neiljp pushed a commit that referenced this issue Jan 21, 2019
c, r, R, +, * ,J/Pagedown and K/Pageup HotKey
used to crash zt when used in streams with
no previous messages. c now calls
stream_box_view while opening footer
and sets name to stream name. r, R, +, * and
J/Pagedown and K/Pageup perform noop.

Fixes: #247.
vonknio pushed a commit to vonknio/zulip-terminal that referenced this issue Jan 27, 2019
c, r, R, +, * ,J/Pagedown and K/Pageup HotKey
used to crash zt when used in streams with
no previous messages. c now calls
stream_box_view while opening footer
and sets name to stream name. r, R, +, * and
J/Pagedown and K/Pageup perform noop.

Fixes: zulip#247.
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Jan 31, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Jan 31, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 1, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 1, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 3, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 3, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 8, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 9, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 9, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 18, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 19, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 19, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 19, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 20, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 21, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Feb 27, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Mar 3, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Mar 3, 2019
sumanthvrao added a commit to sumanthvrao/zulip-terminal that referenced this issue Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted This issue should be clear enough to work on high priority should be done as soon as possible in progress
Projects
None yet
Development

No branches or pull requests

3 participants