-
Notifications
You must be signed in to change notification settings - Fork 109
libtmux is picking up the wrong tmux version #396
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
Comments
The problem is how this code detects the version. It needs to be using regex, not list indices:
This code needs to go away in favor of regex:
Test
Tmux versions can have a letter after it as well, so this regex should work
Will you accept a CR for this? |
Fixed tmuxp:
Submitted PR: #397 |
@mdeguzis can you look at the tests? Can you elaborate a bit more on the PR and what it's fixing? How are you installing tmux? e.g. why is the name of it |
It's just how tmux from our company is done, I don't see why a regex that picks up the version As far as the tests, throwing different strings at it like |
Not directly related to the issue, but I had the same concern about the reason to force the paths instead of relaying on PATH env |
@mdeguzis We welcome PRs that improve support and compatibility On that note, are you still committed to doing #397? Since this is the first time I've seen this case - it needs a champion to take it to the finish line (while preserving the behavior that works) |
I'm happy to have better support in this regard. Are you open to making a PR for this simplification? |
@mdeguzis Does v0.15.0a1 change anything with this? v0.15.0a1: GitHub release, git tag, PyPI package pip install libtmux==0.15.0a1 |
What tag of |
Does that work? If not, tmux-python/tmuxp#805 may be needed pip install --user 'git+https://github.com/tmux-python/[email protected]' pipx install [email protected] 'tmuxp @ git+https://github.com/tmux-python/[email protected]' |
@mdeguzis P.S. If you do above, you may need to |
In the past I would just checkout master/mainline/branch and do |
@mdeguzis Typo, trailing a: Do: It's not master since it's a PR for libtmux v0.15 isn't in master yet |
|
See: tmux-python/tmuxp#794
Started new server, protocol mismatch. tmuxp seems to be using /usr/bin/tmux instead of what I have aliased.
The problem for me is https://github.com/tmux-python/libtmux/blob/master/libtmux/common.py#L241
Your search paths are then placing the system paths AFTER the custom patch
which tmux
pulls up:This really should be the other way around.
I'd hate to have to fork this, so can we just perform a subprocess.run
which tmux
instead? Why do we need to search paths?tmuxp:
The text was updated successfully, but these errors were encountered: