-
Notifications
You must be signed in to change notification settings - Fork 232
Changes colors to be an int, not a string #679
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
Conversation
"If no type is provided, the type of the default value is used. If no default value is provided, the type is assumed to be STRING." https://click.palletsprojects.com/en/8.0.x/options/#basic-value-options - so, probably a bug on their part to overlook Also fixes #649, since #679 is a duplicate - not sure if this line will help link things. |
@Iiridayn thanks, I missed the existing issue. I edited the description so that both will hopefully be closed by this PR. I agree that this seems like an oversight in click's logic. It's pretty unexpected that |
Is there any assurance this PR, or #649, won't break earlier click versions? |
Does this work with click 7? |
@tony yes, the |
@sam-lunt Since we lock click at Is this still happening if you uninstall and reinstall? Thanks for the links, and pardon my fogginess at their API docs, they had a "soft recalled" release in their API docs for a few years and that kind of challenged my trust with click. :P By the time I adopted click is was too late to remove argparse. (Seriously considering just using |
@tony I'm using Arch Linux, which uses Click 8, despite the pin. That said, after upgrading to tmuxp 1.8.2, libtmux 0.9.0, and click 8.0.1, I'm no longer seeing this issue. Adding a break point to |
@sam-lunt Thank you! Nice if this is the case! If you'd like you can close this PR for now, pending it comes up again (if it does we can reopen) |
The reason why is I am a bit concerned about updating click to 8.0 as other Linux distros aren't using it yet. I'm concerned about compatibility. |
Thank you @sam-lunt! We will monitor this from here |
@tony I think that's a good point about Click 8, but I would suggest |
re: I will consider relaxing the constraint. I have a bit too much on plate at the moment - we are seeking maintainers if that's of interest to you: #290 Also |
Click 8.0.1 fixed the flag type inference which impacted this package. https://click.palletsprojects.com/en/8.0.x/changes/#version-8-0-1. Before then, this patch was manually applied by the Arch Linux package maintainer - see https://bugs.archlinux.org/task/70841. |
@Iiridayn Excellent! 8.0.1 may have fixed this by side effect I'm still considering loosening the click constraint as well. There are trade offs. Looser versioning isn't necessarily better. Other package managers enforce these constraints and they actually protected them from being affected (once we locked More leaner version constraints on click could potentially open the door to more issues. No fault of theirs, there's a huge amount of surface area to cover. This example with |
I personally feel that strong version constraints are valuable - for upstream dependencies which follow Semantic Versioning, it's easy enough to lock to version and check when a new major version is released for incompatibility with features you care about. Overly lax or unspecified version constraints can result in software breaking post-update, as seen twice now for this package in Arch, where the constraints were ignored. For Click 8 (8.0.1 anyway) you seem solid to approve it if you don't use any of impacted features. Certainly for at least basic operation it appears to be running fine on Arch Linux systems. |
This fixes #678 and #649
I edited the file on my system and confirmed that this fixes the issue.