-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
refactor: add warning to deprecated functions #16536
refactor: add warning to deprecated functions #16536
Conversation
58f0b73
to
09016dd
Compare
Maybe instead of removing vim.lsp.diagnostics, an error could be thrown with some helpful message like |
Yes I think this is the better approach (although I would suggest a warning rather than an error). vim.api.nvim_echo({{'This method is deprecated. Use {replacement} instead', 'WarningMsg'}}, true, {}) And this needs to make it into a full release before we completely remove these. I had wanted to do something like this for the 0.6 release but never got around to it :( So this deprecation warning will be in 0.7 and they can be fully removed in 0.8. That's a long timeline, but that's plenty of runway to ensure we don't pull the rug out from people too quickly. |
Compromise: add those warnings to the top of each deprecated function in a different PR now and backport to 0.6.1. After 0.6.1 is released, we can merge this PR and turn the warnings into errors (prettied up via |
Also, tests would need adapting. |
09016dd
to
7157f0c
Compare
c9416b6
to
71ec6a1
Compare
This comment has been minimized.
This comment has been minimized.
a0ab607
to
e8d2b31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no tests that depend on deprecated APIs, so I think tests don't need adapting.
Yes, with the new approach of adding a warning to instead of completely removing the deprecated functions, the tests should not need any changes. |
I think |
/backport |
Cannot read property 'match' of null |
/backport release-0.6 |
Git push to origin failed for release-0.6 with exitcode 1 |
4 similar comments
Git push to origin failed for release-0.6 with exitcode 1 |
Git push to origin failed for release-0.6 with exitcode 1 |
Git push to origin failed for release-0.6 with exitcode 1 |
Git push to origin failed for release-0.6 with exitcode 1 |
/backport |
Cannot read property 'match' of null |
/backport |
Successfully created backport PR #16575 for |
Git push to origin failed for release-0.6 with exitcode 1 |
For posterity (and any curious passers by wondering at the carnage that occurred here): empty PR descriptions will cause the backport workflow to fail with |
…ovim#16536)" This reverts commit c4d70da.
warnings and functions will be removed for 0.7.0 in a followup PR.