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
Tmux 2.8.X to 2.9.X migration #1689
Comments
|
It's all the same issue, use -style instead. It's in the change log and the release announcement, what more do you need? |
|
I would probably not be difficult for someone to write a couple of lines of perl or python or even sh to change configs, we could put it in the FAQ... |
|
@nicm I'm sorry man, I just don't understand what you expect us to do... You make a rather impactful change and expect us to figure it out for ourselves? I love TMUX and use it everyday but why does it feel like you're kicking dirt in our faces? Currently I'm digging through the documentation to see how I can migrate over but its an agonizing trial and error experience. I see that for the most part the syntax has changed to |
|
I don't think that's fair. Both the CHANGES file and the release announcement say to replace -fg/-bg/-attr options with -style options, there is a large section in the manual about STYLES - with a couple of examples - plus every individual option is documented. The -attr/-fg/-bg form of these options have been undocumented and not displayed by show-options for more than 5 years. You didn't come here saying "I read the manual and I tried to change X and Y into Z and it didn't work", you just came and pasted a bunch of 100 virtually identical errors into an issue. |
|
But I did look through the changes... I understand that these changes are dead obvious to you but its not as clear to some of us.. I even tried to search for migration guides and any other documentation that could help. I |
|
These are the -style options: The form is exactly the same, it is just one option instead of three: |
|
I've added a section to the FAQ https://github.com/tmux/tmux/wiki/FAQ#how-do-i-translate--fg--bg-and--attr-options-into--style-options. |
|
Thank you @nicm, very much appreciated. |
|
I would also appreciate it if the changed variables were specifically listed in the changelog so they could be easily searched. When my install broke this morning, my first step was to try and search the changelog for |
When tmux upgraded to 2.9, it broke a bunch of options. tmux/tmux#1689
|
Here's a diff of what I had to change to upgrade the config to be Tmux 2.9 compliant. It might help too. https://gitlab.com/fernandobasso/dotfiles/commit/af2c0ac59b93b318575367f0313ad1ca0627a6ba |
|
As was suggested, I made a python2/3 script to update a tmux.conf file to use the v1.9+ The config migration script should work for most folks. I've tried it on the configs being referenced to this issue, and the results are good. In some cases, the updates people are making manually are actually incorrect and the script is less error-prone. Just to be clear according to the tmux docs, if you set the same option repeatedly, the last one takes effect. The Then the second Just read the tmux docs, it's all there. I'll admit my tmux.conf has been a mess of copy+paste for years before the v2.9 removal caused the start-up errors. It feels like with how devs share dotfiles around, it's been easy for me to build up cruft and never touch my conf file because it just works. That's a shame, because I'm now seeing many nice new features tmux has added over time that I could have been using. |
Make tmux config work with tmux version 2.9, see tmux/tmux#1689 (comment)
|
Thanks @tbutts for taking the time to put that together. That's really kind of you. |
See this for details: tmux/tmux#1689
The changes introduced were not backwards-compatible. tmux/tmux#1689
|
I wish this ticket was not closed as I spent the last several hours trying to do the same thing. This ticket should be highlighted somewhere. |
|
@nicm The upgrade came to me as a surprise mostly because I set But perfectly understand that this is fault on my part and not trying to blame you or tmux or anything and partly because homebrew (and other pkg managers) is just too easy to use. You just Just want to add a data point here. To fix the above I'd like to suggest a (also willing to pitch in code, but my C knowledge is quite limited) |
The individual -fg, -bg, and -attr options have been removed; they were superseded by -style options in tmux 1.9. - https://raw.githubusercontent.com/tmux/tmux/2.9/CHANGES - tmux/tmux#1689
Previous settings didn't work anymore See tmux/tmux#1689
|
Why is this a breaking change instead of being backward compatible? |
Tmux introduced breaking change Details here tmux/tmux#1689
|
This should have been a deprecation warning before making it a breaking change. |
Link for the fix: tmux/tmux#1689
This morning I updated tmux to 2.9 from 2.8.1 running on OSX 10.14.4 and I hit the following issues:
I was wondering if there was a 2.8 > 2.9 migration guide available to make this process a little easier?
Thanks
The text was updated successfully, but these errors were encountered: