tmux-python/libtmux

The parse of list-panes output breaks when the screen buffer contains pipe symbol

hongwen000 opened this issue · 6 comments

When there are pipe symbols in the screen buffer, the buffer_sample field in the output of "tmux list-session" may contain pipe symbols.

In the "fetch_objs" function of neo.py, the "obj_formatters" use pipe symbols as the delimiter between fields when parsing the output of "tmux list-session", causing an error in the parsing when pipe symbols are present in the buffer_sample field.

This results in failure of all functions that rely on "fetch_objs" such as creating and listing sessions.

tony commented

@hongwen: I followed up with you here, Can you try this PR or that environmental variable out and see if it allieves the issue?

tony commented

@hongwen000 If you try v0.21.0 (which includes #475), is anything different?

@tony Yes, I have upgraded both tmuxp and libtmux, and now they are working well. Thanks for your following up.

tony commented

@hongwen000 Excellent! Back in action now!

I will close this issue for now. Is #473 settled as well?

@tony Yes. I have closed that pull request.

tony commented

@hongwen000 Good to know this is fixed! I will close this for now. Let me know if this persists!