★ wanayoo — archive 1999 https://github.com/tmux-python/tmuxp/issues/576Nouvelle recherche | Portail wanayoo
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

Tmuxp looking for .yaml at home dir #576

Open
paulofelisbino opened this issue May 6, 2020 · 1 comment
Open

Tmuxp looking for .yaml at home dir #576

paulofelisbino opened this issue May 6, 2020 · 1 comment

Comments

@paulofelisbino
Copy link

@paulofelisbino paulofelisbino commented May 6, 2020

Step 1: Provide a summary of your problem

tmuxp load session.yaml

crashes with

Error: Could not open file file not found: /home/paulo/session.yaml

session.yaml lives at /home/paulo/.tmuxp/ per instructions

Step 2: Provide tmuxp details

  • Python 2.7.17

  • system PATH = /home/paulo/.local/bin:/home/paulo/.local/bin:/home/paulo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/paulo/.fzf/bin

  • tmux 2.6

  • tmuxp 1.5.4

  • tmux path = /usr/bin/tmux

  • tmuxp path = /home/paulo/.local/bin/tmuxp

  • libtmux 0.8.2

  • shell /usr/bin/zsh

  • output of tmux list-sessions, tmux list-windows, tmux list-panes

    • tmux list-sessions = no server running on /tmp/tmux-1000/default
    • tmux list-windows = no server running on /tmp/tmux-1000/default
    • tmux list-panes = no server running on /tmp/tmux-1000/default
  • output of tmux show-options -g, tmux show-window-options -g

    • tmux show-options -g = no server running on /tmp/tmux-1000/default
    • tmux show-window-options -g = no server running on /tmp/tmux-1000/default
  • output of tmuxp freeze <SESSION_NAME>

File "/home/paulo/.local/bin/tmuxp", line 11, in <module>
 sys.exit(cli.cli())
File "/home/paulo/.local/lib/python2.7/site-packages/click/core.py", line 829, in __call__
 return self.main(*args, **kwargs)
File "/home/paulo/.local/lib/python2.7/site-packages/click/core.py", line 782, in main
 rv = self.invoke(ctx)
File "/home/paulo/.local/lib/python2.7/site-packages/click/core.py", line 1259, in invoke
 return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/paulo/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
 return ctx.invoke(self.callback, **ctx.params)
File "/home/paulo/.local/lib/python2.7/site-packages/click/core.py", line 610, in invoke
 return callback(*args, **kwargs)
File "/home/paulo/.local/lib/python2.7/site-packages/tmuxp/cli.py", line 670, in command_freeze
 session = t.find_where({'session_name': session_name})
File "/home/paulo/.local/lib/python2.7/site-packages/libtmux/common.py", line 320, in find_where
 return self.where(attrs)[0]
File "/home/paulo/.local/lib/python2.7/site-packages/libtmux/common.py", line 351, in where
 return list(filter(by, self.children))
File "/home/paulo/.local/lib/python2.7/site-packages/libtmux/server.py", line 188, in sessions
 return self.list_sessions()
File "/home/paulo/.local/lib/python2.7/site-packages/libtmux/server.py", line 183, in list_sessions
 return [Session(server=self, **s) for s in self._sessions]
File "/home/paulo/.local/lib/python2.7/site-packages/libtmux/server.py", line 173, in _sessions
 return self._list_sessions()
File "/home/paulo/.local/lib/python2.7/site-packages/libtmux/server.py", line 153, in _list_sessions
 raise exc.LibTmuxException(proc.stderr)
libtmux.exc.LibTmuxException: [u'no server running on /tmp/tmux-1000/default']

Step 3: Describe your environment

  • Architecture: x86_64
  • OS version: Ubuntu 18.04

Step 4: Describe the problem:

Steps to reproduce:

  1. Create ~/.tmuxp/session.yaml
  2. Run tmuxp load session.yaml

Observed Results:

  • What happened? This could be a description, log output, etc.

Error: Could not open file file not found: /home/paulo/session.yaml

Expected Results:

  • What did you expect to happen?

Load the correct session

Relevant Code:

session_name: session
windows:
  - window_name: bubbie
    panes:
      - echo hello
      - echo hello
@teasp00n
Copy link

@teasp00n teasp00n commented May 19, 2020

Try tmuxp load session. You can leave off the file extension. It was probably looking for session.yaml.[yaml|json] in the default directory but didn't find it so fell back to looking in the current working directory and didn't find it there either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.