Commit graph

33096 commits

Author SHA1 Message Date
Steven R. Loomis
4247cad312
Merge branch 'master' into feat/core-8435-repertoire-test-epic-ldml 2023-04-24 09:19:30 -05:00
Steven R. Loomis
aa1a702432 chore(core): icu fixes in comments and linux packaging 🙀
- version is 73.1 not 72.1
- add mention in linux build docs
- add libicu-dev dependency in debian control (but not runtime)

for #8495
2023-04-24 09:04:35 -05:00
Marc Durdin
71e5cb5b1a
Merge pull request #8652 from keymanapp/chore/developer/build-dependencies
chore(developer): fixup deps for kmc modules
2023-04-24 22:51:31 +10:00
Marc Durdin
4d1d6ddeda
Merge pull request #8651 from keymanapp/feat/developer/kmc-use-callbacks-throughout
feat(developer): use CompilerEvent for messages in all of kmc
2023-04-24 22:51:23 +10:00
Marc Durdin
bb4d335401
Merge pull request #8654 from keymanapp/fix/common/8650-deps-flag
fix(common): builder - pass deps flags to child scripts
2023-04-24 22:51:09 +10:00
Darcy Wong
92670f4100 chore(common): Fix issue number 2023-04-24 15:30:41 +07:00
Darcy Wong
f216673f54 chore(common): Update path 2023-04-24 15:09:00 +07:00
Darcy Wong
23f1e79d2f chore(common): Move the_99 test keyboard to issue folder 2023-04-24 15:06:53 +07:00
Marc Durdin
ec3adcf9d6 chore(developer): additional messages 2023-04-24 12:43:23 +07:00
Darcy Wong
04f638de78
Merge pull request #8653 from keymanapp/chore/crowdin-zh-update
chore(common): Update crowdin strings for Simplified Chinese
2023-04-24 10:49:54 +07:00
Marc Durdin
cb0c39f1aa fix(common): builder - pass deps flags to child scripts 2023-04-24 09:52:22 +07:00
Darcy Wong
1aecb95eff chore(common): Update crowdin strings for Simplified Chinese 2023-04-24 09:42:31 +07:00
Marc Durdin
f11ff9d208 chore(developer): fixup deps for kmc modules 2023-04-24 09:01:29 +07:00
Marc Durdin
9f150b99d4
Merge pull request #8642 from keymanapp/feat/developer/kmc-package-followkeyboardversion-support
feat(developer): support FollowKeyboardVersion in kmc-package
2023-04-24 11:53:43 +10:00
Marc Durdin
1e69c8326f
Merge pull request #8641 from keymanapp/feat/common/kmx-file-reader-ts
feat(common): kmx file reader
2023-04-24 11:53:35 +10:00
Marc Durdin
f9c818f103 chore(common): update dependency paths 2023-04-24 08:51:39 +07:00
Marc Durdin
cf4022ac8a feat(developer): use CompilerEvent for messages in all of kmc
Cleans up majority of remaining kmc-* modules to use CompilerEvent
messages instead of console.log and friends, adding
InfrastructureMessages class for kmc CLI messages.

Consolidates schema loading functions into a single `loadSchema`
function in the CompilerCallbacks interface and implementations.

Moves responsibility for instantiating NodeCompilerCallbacks out of
each individual BuildActivity and into higher level modules.

Fixes return value for failing builds.
2023-04-24 07:26:43 +07:00
Marc Durdin
34ae4a1397 chore(developer): additional unit tests 2023-04-23 06:48:31 +07:00
Keyman Server
69e189aadf
Merge pull request #8649 from keymanapp/auto/version-master-17.0.93
auto: increment master version to 17.0.93
2023-04-22 01:02:44 +07:00
Keyman Build Agent
40d3236eff auto: increment master version to 17.0.93 2023-04-21 14:02:09 -04:00
Steven R. Loomis
489a0ac350
Merge branch 'master' into feat/core-8435-repertoire-test-epic-ldml 2023-04-21 09:14:11 -05:00
Steven R. Loomis
85764848a6 chore: revert zipfile add
- Revert "feat(core): icu integration steps 🙀"
- This reverts commit c168253d19.
2023-04-21 09:13:32 -05:00
Ross
5f07f7ad08 chore(windows): remove addins c-h files 2023-04-21 19:02:03 +10:00
Ross
4019a79676 chore(windows): address review comments 2023-04-21 18:43:50 +10:00
Darcy Wong
59ad01d976 fix(android/engine): Update InApp input connection 2023-04-21 14:51:55 +07:00
Marc Durdin
66a7a6fc4e feat(developer): support FollowKeyboardVersion in kmc-package
Fixes #7340.

Removes the unused <Version> element from <LexicalModel> element in the
.kps schema. (This needs to be copied to api.keyman.com also.)

Updates compiler to check for <FollowKeyboardVersion> and read the
version data from the .kmx in that case.

Unit tests updated. Some of the fixtures were incorrect as they had
<FollowKeyboardVersion> set for model-type packages or packages that
contained no keyboards. Fixed.
2023-04-21 14:04:06 +07:00
Marc Durdin
8ec69471dc feat(common): kmx file reader
Read a .kmx file into memory in Typescript. Currently only reads stores
from the file, as these are the most common things needed for other
processes. Will add support for reading other metadata and rules in
future when required.
2023-04-21 11:52:18 +07:00
Marc Durdin
38ab39944c
Merge pull request #8637 from keymanapp/refactor/developer/kmc-model-CompilerEvent
refactor(developer): kmc-model to use `CompilerEvent`
2023-04-21 13:36:04 +10:00
Marc Durdin
d255639358
Merge pull request #8636 from keymanapp/refactor/developer/kmn_compiler_errors.h
refactor(developer): move comperr.h to kmn_compiler_errors.h
2023-04-21 13:35:55 +10:00
Marc Durdin
7615febe28
Merge pull request #8635 from keymanapp/chore/developer/only-run-keyboards-repo-tests-on-full-test
chore(developer): only run keyboards-repo tests for a full-test
2023-04-21 13:35:46 +10:00
Marc Durdin
469bee3f58
Merge pull request #8634 from keymanapp/fix/developer/kmc-package-path-ref
fix(developer): kmc-package path reference
2023-04-21 13:35:39 +10:00
Joshua A. Horton
5f07d34bc0 fix(web): final patches for hand-written chirality keyboard 2023-04-21 09:14:49 +07:00
Marc Durdin
e30c513fe5 chore(developer): add missing dependency 2023-04-21 08:18:07 +07:00
Keyman Server
30f1ca6274
Merge pull request #8640 from keymanapp/auto/version-master-17.0.92
auto: increment master version to 17.0.92
2023-04-21 01:03:50 +07:00
Keyman Build Agent
abecbb1083 auto: increment master version to 17.0.92 2023-04-20 14:03:15 -04:00
Ross
616dcc8420 chore(windows): revert whitespace changes for review 2023-04-20 21:27:59 +10:00
Marc Durdin
e0ed058e89 refactor(developer): kmc-model to use CompilerEvent
Replaces the existing error reporting in kmc-model with CompilerEvent
style messages. Some of the existing error reporting was kinda nice, but
consistency trumps pretty here.

One downside at present is the global filename and line variables in the
model-compiler-errors.ts unit. This is fragile, and should probably be
refactored further in the future.

Where it made sense, I converted various throws into ModelCompilerError
instances. If it appeared to be an internal error, I left it as-is, but
the external API interfaces wrap all unknown exceptions and convert them
into a compiler error message, so these APIs (compileModel and
loadFromFilename) now have a guarantee that they will never throw.

At this point, all of the error messages in the model compiler are
unrecoverable -- they will halt the compile entirely. However, the
pathway is there to support recoverable errors through the normal
callbacks.reportMessage mechanisms.

The message-counting mechanism is currently missing from this, as it
belongs in the API consumer, rather than in the low-level reporting
infrastructure. This means that models with large numbers of warnings
are going to generate scads of messages for now.

Note that the _users_ of CompilerCallbacks are subject to change in the
future, once we have all the compilers using the callbacks.
2023-04-20 16:40:04 +07:00
Ross
1b46bc1d01 chore(windows): remove keyboardoptions deadcode 2023-04-20 16:55:54 +10:00
Marc Durdin
39d473fb2d refactor(developer): move comperr.h to kmn_compiler_errors.h
Consolidates the two copies of comperr.h (they were identical) and
moves to a common folder. Updates all references to comperr.h, except
for one github commit ref.
2023-04-20 13:20:29 +07:00
Marc Durdin
d9713a2e32 chore(developer): only run keyboards-repo tests for a full-test
If kmcmplib build includes the --full-test flag, then configure and run
tests that include pulling in the keyboards repo; otherwise skip all of
that.

This will require CI changes to run full tests, relating to #8361.
2023-04-20 12:59:00 +07:00
Marc Durdin
0e8861d407 fix(developer): kmc-package path reference 2023-04-20 12:05:26 +07:00
Darcy Wong
89b9b0c637
Merge pull request #8611 from keymanapp/fix/android/undo-suggestion
fix(android/engine): Fix resetContext calls when selection changes
2023-04-20 11:40:29 +07:00
Joshua Horton
4588fbcb68
Merge pull request #8629 from keymanapp/fix/common/web/pred-text-test-dependency
chore(web): sets kmc-model as dependency of input-processor test action
2023-04-20 11:24:25 +07:00
Marc Durdin
cc187ce858
Merge pull request #8628 from keymanapp/feat/developer/8150-non-binary-kvk-file-warning
feat(developer): warn if .kps file includes a non-binary .kvk file
2023-04-20 13:46:11 +10:00
Marc Durdin
c129dfe9a2
Merge pull request #8627 from keymanapp/feat/developer/8150-kmc-package-messages
feat(developer): add CompilerMessages support to kmc-package
2023-04-20 13:45:18 +10:00
Marc Durdin
954b1bc399
Merge pull request #8626 from keymanapp/refactor/developer/shared-test-helpers
refactor(developer): move shared test helpers into common
2023-04-20 13:45:10 +10:00
Marc Durdin
7d14ab4870
Merge pull request #8625 from keymanapp/feat/developer/kmc-kmn-use-new-message-infrastructure
feat(developer): use new message infrastructure in kmc-kmn
2023-04-20 13:45:01 +10:00
Marc Durdin
11058c4843
Merge pull request #8623 from keymanapp/feat/developer/kmc-warning-options
feat(developer): add warning options to kmc
2023-04-20 13:44:52 +10:00
Marc Durdin
cdc3775be9
Merge pull request #8622 from keymanapp/refactor/developer/build-activities-under-build
refactor(developer): move build activities
2023-04-20 13:44:44 +10:00
Marc Durdin
49c561c495
Merge pull request #8618 from keymanapp/fix/developer/8602-double-extension-on-model-build
fix(developer): kmc no longer emits double file extension for models
2023-04-20 13:44:37 +10:00