Python API - async_split_pane fails to return new session in TMUX Integration
- iTerm2 version: 3.3.7
- OS version: 10.14.6
- TMUX version: 2.6
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
- Debug Log: debuglog2.txt.zip
Detailed steps to reproduce the problem:
- Start TMUX -CC
- Run script. Script will never return new_session and the async_activate will fail to work as well. If you are not in TMUX this works as expected. '''
import iterm2 async def main(connection): # Your code goes here. Here's a bit of example code that adds a tab to the current window: app = await iterm2.async_get_app(connection)
window = app.current_window tab = window.current_tab session = tab.current_session new_session = await session.async_split_pane(vertical=True) await session.async_activate(select_tab=True)
What happened: If you are in TMUX and use the async_split_pane then the script will hang and never return the new session.
What should have happened: It should return the session, then switch focus back to the previous session due to the next command.