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
tmuxp freeze cause IndexError #27
Comments
@leechannl Thank you for the report! Does this happen if the panes only use What is your PS1 in What windows were open in the session when the crash happens? Any unicode / fancy symbol text in any of the panes? Probably isn't be relevant but FYI: The current |
It turns out that I input the wrong parameter. I don't have a After I sourced tmuxp.zsh, the available sessions are obviously shown up. In my case I should run Thanks for the help! |
@leechannl Thank you. I can confirm that |
@tony (tmuxp) tmuxp (master) ✗ tmuxp freeze -h
usage: tmuxp freeze [-h] [-L socket-name] [-S socket-path] [-y]
session_name [session_name ...] But the result I got is not as expected. (tmuxp) tmuxp (master) ✗ tmuxp freeze 0 1 3
args is Namespace(answer_yes=None, callback=<function command_freeze at 0x9036b8c>, colors=None, session_name=['0', '1', '3'], socket_name=None, socket_path=None)
session name are ['0', '1', '3']
Traceback (most recent call last):
File "/home/maomao/.virtualenvs/tmuxp/bin/tmuxp", line 9, in <module>
load_entry_point('tmuxp==0.1.0rc4', 'console_scripts', 'tmuxp')()
File "/home/maomao/workspace/tmuxp/tmuxp/cli.py", line 958, in main
command_freeze(args)
File "/home/maomao/workspace/tmuxp/tmuxp/cli.py", line 335, in command_freeze
'session_name': ctext
File "/home/maomao/workspace/tmuxp/tmuxp/util.py", line 159, in findWhere
return self.where(attrs)[0] or None
IndexError: list index out of range I can confirm that the valid session names are (tmuxp) tmuxp (master) ✗ tmux list-sessions
0: 2 windows (created Tue Dec 3 16:01:57 2013) [213x54] (attached)
1: 1 windows (created Wed Dec 4 10:50:35 2013) [213x54]
3: 1 windows (created Wed Dec 4 20:47:53 2013) [80x23] |
@leechannl I committed a fix for this. FYI at this point, Can you try For future reference (in case anyone reads this): you can rename current sessions manually via
|
@leechannl I also confirm and additional issue - how CLI presents session names as if it allows multiple. I will make a second issue for this. |
Hi, I just ran
tmuxp freeze test
in a tmux window, and got the following traceback:The tmuxp version I installed is:
0.1.0rc4
, and it's in a virtualenv.I use zsh, and Oh-my-Zsh.
Python version is
Python 2.7.5+
.My OS is Ubuntu 13.10.
Besides, I ran the tests, all pass.
The text was updated successfully, but these errors were encountered: