-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
Fix up speechDictVars deprecation #15048
Conversation
cc @ruifontes - I assume this fixes your issue? @ultrasound1372 - does this also fix the issue you were having? Without more information about what broke for your add-on, we are unable to address your comments in #15021 (comment) |
For me is good! |
Apologies for the lack of details, it turns out the paths are slightly different. Here are the errors.
And upon switching config profiles, enhanced dictionaries, which I got from an external source and is available here, gives this.
Seems strange that the second one attempts to be looking for the same path in a different place? I'm unsure how to actually test if this PR works myself without it being merged. |
|
I've pushed further changes to catch this - but I imagine that other issues like this could arise from add-ons. It is really important to import code from the correct origin. |
See test results for failed build of commit 4f97fc8dc9 |
Link to issue number:
Follow up of #15021
Summary of the issue:
The deprecation was incorrectly documented, missing the module name and referring to
NVDAState.WritePaths.speechDictsDir
instead ofWritePaths.speechDictsDir
.The change also caused some issues for add-ons who were relying on the deprecated code being imported into a different module.
Description of user facing changes
N/A
Description of development approach
For ease of use, compatibility for the imported code has been retained, despite not being an API breaking change.
Documentation of the deprecation has been fixed.
Testing strategy:
Known issues with pull request:
None
Change log entries:
Refer to diff
Code Review Checklist: