Skip to content
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(developer): handle missing files in kmc-model #12596

Merged

Conversation

mcdurdin
Copy link
Member

If a file is not found, loadfile returns null, which kmc-model now handles with a clear error message rather than a generic exception. Checks added for missing .model.ts and missing wordlist.tsv files. Added corresponding unit tests.

Fixes: #12553
Fixes: KEYMAN-DEVELOPER-294

@keymanapp-test-bot skip

If a file is not found, loadfile returns null, which kmc-model now
handles with a clear error message rather than a generic exception.
Checks added for missing .model.ts and missing wordlist.tsv files. Added
corresponding unit tests.

Fixes: #12553
Fixes: KEYMAN-DEVELOPER-294
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Oct 31, 2024

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot added this to the A18S14 milestone Oct 31, 2024
Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Base automatically changed from fix/developer/12546-kmc-kmn-handle-missing-files to master November 5, 2024 06:05
@mcdurdin mcdurdin merged commit 1fc6558 into master Nov 5, 2024
7 checks passed
@mcdurdin mcdurdin deleted the fix/developer/12553-kmc-model-handle-missing-files branch November 5, 2024 06:06
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.135-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bug(developer): missing wordlist file causes TypeError: Cannot read properties of null (reading 'length')
3 participants