Skip to content

sync feature causes grep error on recent macos when using -s mode #173

@zdAlexM

Description

@zdAlexM

Hi,

I believe this started when upgrading to 12.5, but when using xpanes -t -s -c 'ssh -F ssh.config {}' host1 host2 host3 etc, the panes are opening with the following kind of error:
grep: /Users/zdAlexM/.cache/xpanes/__xpns_sync_776f726b312e706f6432362e757365322e7a647379732e636f6d2d36373834320a-5-67842: No such file or directory

where the digits vary per pane and session ID.

This does not happen if I leave out the -s option

The .cache/xpanes directory exists, and the sessions establish, but it looks like there's a race condition between creating the FIFO and expecting it. Unfortunately, adding --debug to the command line doesn't seem to produce any more logging output inside the pane, and the out-of-pane logs are not too informative as to the issue:

xpanes:Debug: [2023-01-11_11:26:17]:xpns_get_window_height_width:window height: 54, width: 175
xpanes:Debug: [2023-01-11_11:26:17]:xpns_check_cell_size:Window: { Height: 54, Width: 175 }
xpanes:Debug: [2023-01-11_11:26:17]:xpns_check_cell_size:Cell: { Height: 17, Width: 57 }
xpanes:Debug: [2023-01-11_11:26:17]:xpns_check_cell_size:# Of Panes: 9
xpanes:Debug: [2023-01-11_11:26:17]:xpns_check_cell_size:         | Row[0] --...--> Row[MAX]
xpanes:Debug: [2023-01-11_11:26:17]:xpns_check_cell_size:    -----+------------------------...
xpanes:Debug: [2023-01-11_11:26:17]:xpns_check_cell_size:    Col[]| 3 3 3 
xpanes:Debug: [2023-01-11_11:26:17]:xpns_check_cell_size:    -----+------------------------...
xpanes:Debug: [2023-01-11_11:26:17]:xpns_pre_execution:Options: '--debug' '-t' '-s' '-c' 'ssh -F ssh.config {}'
xpanes:Debug: [2023-01-11_11:26:17]:xpns_pre_execution:Arguments: 'host1' 'host2' 'host3' 'host4' 'host5' 'host6' 'host7' 'host8' 'host9'
xpanes:Debug: [2023-01-11_11:26:17]:xpns_clean_session:file = /Users/zdAlexM/.cache/xpanes/socket.*
xpanes:Debug: [2023-01-11_11:26:17]:xpns_clean_session:socket(/Users/zdAlexM/.cache/xpanes/socket.*) is not running. Remove it
[exited]
xpanes:Debug: [2023-01-11_11:26:21]:xpns_clean_session:file = /Users/zdAlexM/.cache/xpanes/socket.60843
xpanes:Debug: [2023-01-11_11:26:21]:xpns_clean_session:socket(/Users/zdAlexM/.cache/xpanes/socket.60843) is not running. Remove it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions