-
-
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
Config upgrade/speak typed characters and words: keys "speakTypedCharacters" and "speakTypedWords" are of the wrong type #17637
Comments
cc: @cary-rowen |
Sorry for introducing this regression. |
@cary-rowen - it's a merge conflict between #17598 and #16848 , we both had a config upgrade step for the same schema version |
@josephsl can you please provide a copy of your old |
Hi, This is nvda.ini (renamed to .txt) from NVDA 2024.4.2 RC 1. |
@josephsl I can't replicate the error you're experiencing. My testing methodology was as follows: Minimal: Ran NVDA from source (master checked out). Imported configobj and the profile upgrade steps. Instantiated a ConfigObj with your config file, then called Portable: Created a portable copy of NVDA based on a version without the typing echo PR. Copied your config file into its
In all cases, the config was upgraded successfully. Installed: Installed NVDA based on a version without the typing echo PR. Copied your config file into to
In both cases, the config was upgraded successfully. @seanbudd do you have any thoughts? |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Hi, I can't reproduce this at the moment:
I guess this could be something unique to my system and my config file. But I still think it would be good to have a backup plan as proposed in the pull request. Thanks. |
Hi,
Critical alpha regression after merge of #17505:
Steps to reproduce:
Actual behavior:
NVDA restores default settings due to value/type mismatch in speak typed characters/words.
Expected behavior:
Speak typed characters and words settings are migrated properly.
NVDA logs, crash dumps and other attachments:
ERROR - config.ConfigManager.initBaseConf (22:10:00.070) - MainThread (28856):
Error loading base configuration; the base configuration file will be reinitialized. A copy of your previous configuration file will be saved at C:\Users\User\AppData\Roaming\nvda\nvda.ini.corrupted.bak
Traceback (most recent call last):
File "config_init.pyc", line 582, in initBaseConf
File "config_init.pyc", line 633, in loadConfig
File "config_init.pyc", line 629, in _loadConfig
File "config\profileUpgrader.pyc", line 27, in upgrade
File "config\profileUpgrader.pyc", line 68, in _doValidation
ValueError: Unable to validate config file after upgrade: Key speakTypedCharacters : the value "False" is of the wrong type.
The above traceback repeats if "speakTypedWords" value/type mismatch occurs (which is on my system as I turn both settings off).
System configuration
NVDA installed/portable/running from source:
Installed
NVDA version:
alpha-35064,605db3e4
Windows version:
Windows 11 24H2 dev Insider (build 26120.2992)
Name and version of other software in use when reproducing the issue:
None
Other information about your system:
Used as a development workstation
Other questions
Does the issue still occur after restarting your computer?
Yes
Have you tried any other versions of NVDA? If so, please report their behaviors.
No issues in prior alphas
If NVDA add-ons are disabled, is your problem still occurring?
Yes
Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?
Yes
Possible cause:
I suspect config upgrade is at fault in that bool to integer conversion for typing echo settings are not translated correctly.
Thanks.
The text was updated successfully, but these errors were encountered: