Skip to content

bug(common): kmc cannot load a v1.0 project which has no files #10143

@mcdurdin

Description

@mcdurdin

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions