-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Make state methods panic on missing StatePlugin
#14238
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
benfrankel
left a comment
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.
Small PR, one nit.
Co-authored-by: Ben Frankel <[email protected]>
|
Could you check the stack trace, and how easy it is to find where the issue comes from? Could Also, what does it mean to "install" a plugin? I prefer the error message from #14160 |
|
I would also prefer to not have a hard dependency on the plugin, but on what it's adding. If someone decides to rewrite the plugin changing a few things but still setting up all the machinery, it should still work. #14160 is better for that |
Agree to disagree, most of the machinery is in the So replacing the machinery would require replacing both, the plugin and the methods. And that's still at the risk of breaking 3rd party crates |
In addition to the feedback above; this will also be much harder to maintain. I don't think we have a clear / stable enough set of invariants to make this feasible right now. |
mnmaita
left a comment
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.
Is this still relevant now that #14160 was merged? @alice-i-cecile
|
I'd like to avoid panics unless absolutely essential, and I think that #14160 is an adequate solution to this problem. Closing. |


Objective
StatePlugin#14237StatesPluginis missing #14151Solution
Testing