Commit graph

2740 commits

Author SHA1 Message Date
Dr Mark C. Sinclair
eff01fb3a1 chore(developer): corrected filename in ERROR_UnknownFileFormat unit test 2024-02-17 15:58:34 +07:00
Dr Mark C. Sinclair
429cad0703 chore(developer): change unnecessary template literals to single quotes in tests 2024-02-17 15:58:33 +07:00
Dr Mark C. Sinclair
62589599a0 chore(developer): rename fixture file in 'ERROR_FileTypeNotFound (BuildModelInfo; .model.ts)' 2024-02-17 15:58:32 +07:00
Dr Mark C. Sinclair
f4b1c968cc chore(developer): changes to files that should have been added to previous commits 2024-02-17 15:58:31 +07:00
Dr Mark C. Sinclair
1e292c34dc chore(developer): rename fixture file in 'ERROR_FileTypeNotFound (BuildModelInfo; .kps)' test 2024-02-17 15:58:29 +07:00
Dr Mark C. Sinclair
1a53c9d074 chore(developer): rename fixture file in 'ERROR_FileTypeNotFound (BuildKeyboardInfo)' test 2024-02-17 15:58:28 +07:00
Dr Mark C. Sinclair
f1fbb5a86a chore(developer): change folder name in ERROR_InvalidProjectFolder (no source folder) test' 2024-02-17 15:58:27 +07:00
Dr Mark C. Sinclair
ec8d2339a6 chore(developer): add ERROR_CannotCreateFolder infrastructure message unit test 2024-02-17 15:58:26 +07:00
Dr Mark C. Sinclair
1023c7c902 chore(developer): add ERROR_InvalidProjectFolder (no source folder) unit test 2024-02-17 15:58:20 +07:00
Dr Mark C. Sinclair
eb68475d35 chore(developer): correct error message in ERROR_UnknownFileFormat test 2024-02-17 15:56:33 +07:00
Dr Mark C. Sinclair
9fa6d23a54 chore(developer): change to reflect addition of outfile parameter to build methods 2024-02-17 15:56:32 +07:00
Dr Mark C. Sinclair
91524edfa9 chore(developer): add additional file type asserts to ERROR_FileTypeNotFound BuildModelInfo tests 2024-02-17 15:56:30 +07:00
Dr Mark C. Sinclair
5ef356a194 chore(developer): correct .kpj fixtures for ERROR_FileTypeNotFound BuildModelInfo tests 2024-02-17 15:56:29 +07:00
Dr Mark C. Sinclair
ca3362469f chore(developer): add ERROR_FileTypeNotFound (BuildModelInfo; .kps) unit test 2024-02-17 15:56:28 +07:00
Dr Mark C. Sinclair
8af4b93120 chore(developer): add ERROR_FileTypeNotFound (BuildModelInfo; .model.ts) unit test 2024-02-17 15:56:26 +07:00
Dr Mark C. Sinclair
f39ba347b2 chore(developer): add ERROR_FileTypeNotFound (BuildKeyboardInfo) unit test 2024-02-17 15:56:25 +07:00
Dr Mark C. Sinclair
e4821c872b chore(developer): add ERROR_UnknownFileFormat unit test and supporting endpoint 2024-02-17 15:55:59 +07:00
Dr Mark C. Sinclair
85d95ffa4f chore(developer): refactor to rename fixture/invalid-project to invalid-projects 2024-02-17 15:55:30 +07:00
Dr Mark C. Sinclair
015b81014c chore(developer): add ERROR_NotAProjectFile unit test 2024-02-17 15:54:03 +07:00
Dr Mark C. Sinclair
24e7105a9b chore(developer): add ERROR_InvalidProjectFile unit test 2024-02-17 15:52:27 +07:00
Dr Mark C. Sinclair
af6ccc4d83 chore(developer): add ERROR_OutFileNotValidForProjects unit test 2024-02-17 15:51:08 +07:00
Dr Mark C. Sinclair
3f383e64e3 chore(developer): correct typo in error_file_type_not_recognized.xxx 2024-02-17 15:49:45 +07:00
Dr Mark C. Sinclair
5301f7a176 chore(developer): add ERROR_FileTypeNotRecognized test 2024-02-17 15:49:44 +07:00
Dr Mark C. Sinclair
09739656ea chore(developer): add ERROR_FileDoesNotExist test 2024-02-17 15:49:42 +07:00
Steven R. Loomis
7cd2e2d4e0 fix(developer): fix for incorrectly-stateful regex
- take out the /g flag for regex used with .exec

For #10734
2024-02-15 15:47:41 -06:00
Steven R. Loomis
8121345e2c Merge remote-tracking branch 'origin/feat/developer/10389-bad-regex-no-biscuit' into feat/developer/10389-more-regex-test 2024-02-13 18:07:07 -06:00
Steven R. Loomis
099154553a feat(developer): errs on unparseable regex 🙀
- update per code review

For: #10389
2024-02-13 18:01:26 -06:00
Steven R. Loomis
8787073c40 feat(developer): errs on \uXXXX escapes 🙀
- note, some older test cases had to be fixed also.

For: #10389
2024-02-13 12:26:46 -06:00
Steven R. Loomis
da4b544471 feat(developer): errs on unparseable regex 🙀
- also, make sure NFD-incompliant ranges get mapped to escaped chars
- also, propagate UnicodeSet errs out

For: #10389
2024-02-12 18:16:34 -06:00
Marc Durdin
57468db5da
Merge pull request #10664 from keymanapp/fix/developer/10655-10663-web-target-keyboard-crashes-and-wrong-folders
fix(developer): keyboard that targets only web can cause crashes and other problems
2024-02-12 09:52:17 +11:00
Marc Durdin
a918cc182f fix(developer): keyboard that targets only web can cause crashes and other problems
Fixes #10655.
Fixes #10663.

If a .kmn file had only a .js target, then Keyman Developer would return
an empty string for the target (based on .kmx). This meant that the path
for the compiler was an empty string, the path for opening the build
folder was an empty string.

Refactored the relevant code to simplify the logic a little.
2024-02-07 13:15:51 +07:00
Marc Durdin
44abf2c41e
Merge pull request #10651 from markcsinclair/fix/developer/ensure-project-populate-files-actually-adds-files
fix(developer): ensure project populate files actually adds files
2024-02-07 16:01:56 +11:00
Marc Durdin
6c4d5ff7fa
Merge pull request #10585 from keymanapp/fix/core/10582-km_core_state_get_actions-idempotency
fix(core): make `km_core_state_get_actions()` idempotent
2024-02-07 14:42:50 +11:00
Steven R. Loomis
5360cff8e5 Merge branch 'feat/developer/10554-sometimes-no-norm' into feat/developer/10316-range-warning 2024-02-06 16:14:54 -06:00
Steven R. Loomis
50e0b31e9e feat(developer): support normalization=disabled 🙀
- fix check normalization state

#10554
2024-02-06 14:54:26 -06:00
Dr Mark C. Sinclair
29b6601018 fix(developer): ensure project populate files actually adds files and test 2024-02-06 10:39:47 +00:00
Marc Durdin
70ba1d1c1e
Merge branch 'chore/core/10520-hide-old-action-apis' into fix/core/10582-km_core_state_get_actions-idempotency 2024-02-05 13:44:47 +11:00
Steven R. Loomis
90119c0ffe
Merge branch 'feat/developer/10554-sometimes-no-norm' into feat/developer/10316-range-warning 2024-02-02 17:03:04 -06:00
Steven R. Loomis
80ad3a87fc feat(developer): hint/warn on range check 🙀
- add warning into tran.ts - will be one warning per <tranform> element

#10316
2024-02-02 16:59:58 -06:00
Steven R. Loomis
db1c4b8636 feat(developer): hint/warn on range check 🙀
- failing test

#10316
2024-02-02 00:05:10 -06:00
Steven R. Loomis
ef99b81f14
Merge branch 'master' into feat/developer/10554-sometimes-no-norm 2024-02-01 22:21:55 -06:00
Steven R. Loomis
535418d9ef feat(developer): hint/warn on range check 🙀
- just the test files

#10316
2024-02-01 19:02:54 -06:00
Steven R. Loomis
eaeb3e4284 feat(developer): support normalization=disabled 🙀
- additional test changes
- turn off cooking the 'from' if disabled

#10554
2024-02-01 15:19:19 -06:00
Marc Durdin
8db33b5c9c
Merge pull request #10522 from keymanapp/chore/developer/tweak-kmc-ldml-build
chore(developer): kmc ldml build - call c8 directly for tests
2024-02-01 17:26:21 +11:00
Steven R. Loomis
d77ed9099b feat(developer): support normalization=disabled 🙀
#10554
2024-01-31 23:16:51 -06:00
Steven R. Loomis
9120bb4c87 feat(core,developer): normalization=disabled 🙀
- failing tests and initial work

#10554
2024-01-31 22:38:06 -06:00
Marc Durdin
1b88ab99be fix(core): make km_core_state_get_actions() idempotent
Fixes #10582.

Returned struct from the `km_core_state_get_actions()` API is now owned
by the state object. This is a change in API contract. The corresponding
`km_core_actions_dispose()` API has been made private, because there is
never any need for API consumers to call it. As this change is happening
in alpha, we won't bump the ABI version.

`state->app_context` is now guaranteed to be in sync with
`state->context` after `km_core_process_event()`, with the actions
struct populated at that point.

The next and final step in this refactor is to remove the actions queue
altogether from the Core and make that a kmn-only concept, but that will
wait until 18.0. The only consumers of the actions queue are the
kmn-specific interactive debugger in Keyman Developer, and kmn-specific
Input Method eXtensions in Keyman Engine for Windows.
2024-02-01 11:28:08 +07:00
Marc Durdin
95c2fdb63c
Merge pull request #10568 from keymanapp/chore/developer/10491-include-unicode-license
chore(developer): add unicode-license.txt for ldml keyboards data
2024-02-01 10:48:14 +11:00
Marc Durdin
ad263968de
Merge pull request #10560 from keymanapp/chore/developer/10547-disable-js-output-for-ldml-17.0
chore(developer): disable .js output for LDML keyboard compiler for 17.0
2024-01-31 13:40:53 +11:00
Marc Durdin
92aa65dd78
Merge pull request #10559 from keymanapp/fix/developer/10542-invalid-source-path
fix(developer): make sourcePath calculation for kmc-keyboard-info more lenient
2024-01-31 13:40:45 +11:00