Fix plugin reload#14409
Merged
Merged
Conversation
Collaborator
|
I've tested this PR with eMule add-onand the app module can be reloaded pressing NVDA+control+f3, so I think that the reported issue is fixed with this PR. |
|
OK, am I being a bit thick here?. is this why the latest snap of the alpha
branch, when you hit reload plugins, cannot see read feeds, 3d sound schemes
etc until you restart nvda? I was always under the impression that when add
ons were installed or updated, nvda had to start again anyway.
Brian
…--
***@***.***
Sent via blueyonder.(Virgin media)
Please address personal E-mail to:-
***@***.***, putting 'Brian Gaff'
in the display name field.
----- Original Message -----
From: "Leonard de Ruijter" ***@***.***>
To: "nvaccess/nvda" ***@***.***>
Cc: "Subscribed" ***@***.***>
Sent: Monday, November 28, 2022 7:05 AM
Subject: [nvaccess/nvda] Fix plugin reload (PR #14409)
### Link to issue number:
Fixes #14408
### Summary of the issue:
PR #14350 streamlined import code for globalPlugins and appModules.
However, the reloading of these modules was overlooked.
### Description of user facing changes
Reloading of appModules/globalPlugins works again
### Description of development approach
The reloading functions for both appModules and globalPlugins call
addonhandler.packaging.addDirsToPythonPackagePath
### Testing strategy:
Tested that at least globalPlugin reloading works again. @nvdaes could you
please have a test as well?
### Known issues with pull request:
### Change log entries:
None needed
### Code Review Checklist:
<!--
This checklist is a reminder of things commonly forgotten in a new PR.
Authors, please do a self-review of this pull-request.
Check items to confirm you have thought about the relevance of the item.
Where items are missing (eg unit / system tests), please explain in the
PR.
To check an item `- [ ]` becomes `- [x]`, note spacing.
You can also check the checkboxes after the PR is created.
A detailed explanation of this checklist is available here:
https://github.com/nvaccess/nvda/blob/master/devDocs/githubPullRequestTemplateExplanationAndExamples.md#code-review-checklist
-->
- [x] Pull Request description:
- description is up to date
- change log entries
- [x] Testing:
- Unit tests
- System (end to end) tests
- Manual testing
- [x] API is compatible with existing add-ons.
- [x] Documentation:
- User Documentation
- Developer / Technical Documentation
- Context sensitive help for GUI changes
- [x] UX of all users considered:
- Speech
- Braille
- Low Vision
- Different web browsers
- Localization in other languages / culture than English
- [x] Security precautions taken.
You can view, comment on, or merge this pull request online at:
#14409
-- Commit Summary --
* Fix plugin reload
-- File Changes --
M source/appModuleHandler.py (2)
M source/globalPluginHandler.py (2)
-- Patch Links --
https://github.com/nvaccess/nvda/pull/14409.patch
https://github.com/nvaccess/nvda/pull/14409.diff
--
Reply to this email directly or view it on GitHub:
#14409
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
seanbudd
approved these changes
Nov 28, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Fixes #14408
Summary of the issue:
PR #14350 streamlined import code for globalPlugins and appModules. However, the reloading of these modules was overlooked.
Description of user facing changes
Reloading of appModules/globalPlugins works again
Description of development approach
The reloading functions for both appModules and globalPlugins call addonhandler.packaging.addDirsToPythonPackagePath
Testing strategy:
Tested that at least globalPlugin reloading works again. @nvdaes could you please have a test as well?
Known issues with pull request:
Change log entries:
None needed
Code Review Checklist: