-
Notifications
You must be signed in to change notification settings - Fork 27
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
DynamicPlugin
is not able to re-register commands after 'disable' then 'enable'
#314
Comments
The contribution is first registered via the fixture
Note that On disable, commands belonging to this plugin are removed from the
Note it seems that for all types of contributions added via |
DynamicPlugin
contribute.widget
fixture does not register corresponding commandDynamicPlugin
is not able to re-register commands after 'disable' then 'enable'
I think we've sorted out what is happening now. Some background;
The original error was because we were getting the callable (in The problem remains though that you will not be able to execute a command added by a This is not ideal and prevents proper testing, even though unfortunately we currently never test that enable works properly. We may be able to fix this by over-writing the |
Adds some info about when `CommandRegistry` is updated. Uses info learned when debugging #314 Happy to change wording or move to a better place. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Draga Doncila Pop <[email protected]> Co-authored-by: Nathan Clack <[email protected]>
Description
The fixture
@tmp_plugin.contribute.widget
does not seem to register the correspondingcommand
contribution?What I Did
The following test:
will give the following error
The text was updated successfully, but these errors were encountered: