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

fix: remove deprecated -p size #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DojoKuro
Copy link

There comes errors when using left/right/above/below(self, *args, of=None, display=None, **kwargs)

size missing
Traceback (most recent call last):
  File "<string>", line 5, in <module>
  File "/home/work/splitmind/splitmind/mind.py", line 37, in right
    self.last = self.splitter.right(*args, of=of or self.last, display=display, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/work/splitmind/splitmind/splitter/tmux.py", line 147, in right
    return self.split("-h",  *args, target=of, display=display, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/work/splitmind/splitmind/splitter/tmux.py", line 137, in split
    split = tmux_split(*args, target=target, display=display, cmd=cmd or self.cmd,
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/work/splitmind/splitmind/splitter/tmux.py", line 42, in tmux_split
    res = check_output('tmux split-window -P -d -F'.split(" ")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['tmux', 'split-window', '-P', '-d', '-F', '#{pane_id}:#{pane_tty}', '-h', '-p', '25', '/bin/cat -']' returned non-zero exit status 1.
/home/work/.gdbinit:21: Error in sourced command file:
Error while executing Python code.

Just fix the deprecated parameter -p size to make it work.

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

Successfully merging this pull request may close these issues.

1 participant