Describe the bug
Exceptions are thrown when no validation rule is given for Project settings and User settings. I am using TPKJ project to update the Settings.xml. Notice that Settings.xml and settings.json are not updated with the given information on UI
To Reproduce
Steps to reproduce the behavior:
In my test extension I have Project Settings and Settings input with validation rules.
On Settings Test
Enter TestWhite in Settings Background Color (No Validation Rule) :
Notice that settings.json is not updated with "paranextExtTesting.backGroundColor_TC12":"TestWhite" at
C:\Users{UserName}.platform.bible\data
See error message displayed in the console.
Similarly
Enter WhiteTest at ProjectSettings BackgroundColor (No Validation) :
Notice that Settings.xml is not updated with "paranextExtTesting.backGroundColor_projectSetting_TC13":"WhiteTest" at
C:\Users{UserName}.platform.bible\projects\Paratext 9 Projects\TPKJ
See error message displayed in the console.
Expected behavior
Settings.xml and settings.json must be updated without any exceptions.
In case of Validation rule returns false, error must logged
Describe the bug Exceptions are thrown when no validation rule is given for Project settings and User settings. I am using TPKJ project to update the Settings.xml. Notice that Settings.xml and settings.json are not updated with the given information on UI
To Reproduce Steps to reproduce the behavior: In my test extension I have Project Settings and Settings input with validation rules.
Settings Test
TestWhite
in Settings Background Color (No Validation Rule) :"paranextExtTesting.backGroundColor_TC12":"TestWhite"
at C:\Users{UserName}.platform.bible\dataSimilarly
WhiteTest
at ProjectSettings BackgroundColor (No Validation) :"paranextExtTesting.backGroundColor_projectSetting_TC13":"WhiteTest"
at C:\Users{UserName}.platform.bible\projects\Paratext 9 Projects\TPKJExpected behavior Settings.xml and settings.json must be updated without any exceptions. In case of Validation rule returns false, error must logged
Find the attachment for log file
main.log