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-kmn #12595

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Oct 31, 2024

If a file is not found, the loadfile callback now returns an empty array rather than null, which kmcmplib interprets as a missing file. This means a zero-byte file will have the same outcome but as it is also generally invalid, I think that is acceptable.

The 17.0 compiler has a different callback mechanism, so won't cherry-pick to 17.0.

Fixes: #12546
Fixes: KEYMAN-DEVELOPER-292

@keymanapp-test-bot skip

If a file is not found, the loadfile callback now returns an empty array
rather than null, which kmcmplib interprets as a missing file. This
means a zero-byte file will have the same outcome but as it is also
generally invalid, I think that is acceptable.

Fixes: #12546
Fixes: KEYMAN-DEVELOPER-292
@keymanapp-test-bot
Copy link

User Test Results

Test specification and instructions

User tests are not required

@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

@mcdurdin mcdurdin merged commit 9c403bc into master Nov 5, 2024
7 checks passed
@mcdurdin mcdurdin deleted the fix/developer/12546-kmc-kmn-handle-missing-files branch November 5, 2024 06:05
@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 .ico file causes TypeError: Cannot read properties of null (reading 'length')
3 participants