-
Notifications
You must be signed in to change notification settings - Fork 447
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
Suppress deprecation warnings #2026
Comments
These warnings (compatibility layer) will be completely removed in the next version 0.4.2, so adding a way to disable them might be unnecessary, as they will be gone anyway with the release of the next version. However, we might still need to consider the timing of their removal. I mean, if a new critical bug is reported and we need to release a quick fix version 0.4.2, similar to how we did with 0.4.1, then the removal process might be delayed until 0.4.3. At that point, it might make more sense to reconsider whether adding an option to disable the warnings would be a good idea |
If I understand correctly, you are going to remove the entire compatibility layer? That is going to break the plugins when they are not updated till then, which technically solves this issue, but not really 😬 The developer of dual-pane.yazi already said it will take them a while to make the plugin compatible with 0.4 (dawsers/dual-pane.yazi#5). It would be nice to retain compatibility for a while, and still not have the deprecation warnings interrupt users. |
Yes, removing the compatibility layer is part of the 0.4.2 plan (as described in the migration docs), but it's not set in stone - I'm continuously assessing the right time to remove it to ensure it doesn't have too much impact on the plugin ecosystem. Note that, unless any new critical bugs are reported, 0.4.2 is not expected to arrive too soon, and if 0.4.2 has to be a quick patch release, the removal will be delayed until 0.4.3. |
Ok 👍 Please consider a toggle for deprecation warnings in the meantime. And thank you for making yazi 🥇 |
Please try #2027 |
I came here, after reading the discussion, and I want to thank you @sxyazi, open-source deserve ❤️ not 😬 |
yazi --debug
outputPlease describe the problem you're trying to solve
After updating Yazi to the latest version, deprecation warnings from plugins using old functions are popping up everywhere. They clutter the interface and make it really hard to use Yazi. I know the plugin developers are already working on updates, but in the meantime, I can’t do much because the warnings won’t go away.
Would you be willing to contribute this feature?
Describe the solution you'd like
It would be great to have an option to hide or suppress these deprecation warnings temporarily. Maybe a toggle in the settings or a config flag? That way, the interface stays clean, and I can keep using Yazi without the warnings taking over while waiting for plugins to get updated.
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: