-
-
Notifications
You must be signed in to change notification settings - Fork 137
bug(common): kmc cannot load a v1.0 project which has no files #10143
Copy link
Copy link
Closed
Description
via email from @markcsinclair
If a v1.0 .kpj has an empty <Files> tag (i.e. no <File> tags), then kmc fails to load the file:
{
"code": 3166216,
"message": "Project file is not valid: Error: [{\"instancePath\":\"/KeymanDeveloperProject/Files\",\"schemaPath\":\"#/type\",\"keyword\":\"type\",\"params\":{\"type\":\"object\"},\"message\":\"must be object\"}]",
"filename": ""
}
It should be able to load this file, even though it's not a useful project file!
Note: if the <Files> tag is removed, then an obscure error is given:
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
This should also be corrected.
Reactions are currently unavailable