Commit graph

27982 commits

Author SHA1 Message Date
Marc Durdin
19a8ddcc6e
Merge pull request #4890 from keymanapp/fix/windows/4889-crash-when-installing-tip
fix(windows): crash when installing TIP in some rare situations
2021-04-21 10:21:25 +10:00
Marc Durdin
1822590261
Merge pull request #4887 from keymanapp/fix/windows/4886-install-crashes-on-invalid-and-legacy-package-names
fix(windows): handle invalid package names during install
2021-04-21 10:21:09 +10:00
Marc Durdin
355eba3514 fix(developer): chiral mismatch warning is disruptive
Fixes #4803.

This fixes part of #4803 - namely the obtrusive warning flagging that
there are mismatched modifier types in the keyboard. Instead of making
the change during tab switching, it simply shows a warning message in
the design view of the keyboard, which the developer can choose to
ignore.

This does not address the removal of comments or the switch of character
formats which is part of that conversion routine. That is a more complex
change to the parser.
2021-04-21 10:07:33 +10:00
Keyman Server
4013899673
Merge pull request #4933 from keymanapp/auto/version-master-15.0.32
auto: increment master version to 15.0.32
2021-04-21 04:02:55 +10:00
Keyman Build Agent
88cc238a43 auto: increment master version to 15.0.32 2021-04-20 14:02:11 -04:00
Eberhard Beilharz
599b602603
chore(linux): Merge branch 'master' into feat/linux/sentry
# Conflicts:
#	linux/keyman-config/keyman_config/handle_install.py
2021-04-20 11:49:43 +02:00
Eberhard Beilharz
9fcddb8afa
fix(linux): Set userid instead of username
Username expects a string, so we set the userid instead.
2021-04-20 11:46:15 +02:00
Eberhard Beilharz
9d7be1b6b5
feat(linux): Log some errors as critical
Some errors we want to be reported on Sentry, so we change those
to critical.
2021-04-20 11:45:07 +02:00
Eberhard Beilharz
68f9fd315e
feat(linux): Use hash of username 2021-04-20 11:14:23 +02:00
Eberhard Beilharz
4ac6b83088
Merge pull request #4913 from keymanapp/chore/linux/cleanup
chore(linux): Remove experimental scripts
2021-04-20 02:09:07 -07:00
Eberhard Beilharz
0845a9d6c8
Merge pull request #4912 from keymanapp/fix/linux/issue-4911
fix(linux): Don't crash on network problem (fixes #4911)
2021-04-20 02:03:18 -07:00
jahorton
00debdbb28 change(web): SMP enablement always on in embedded mode 2021-04-20 16:02:55 +07:00
Eberhard Beilharz
932a49d050
Merge pull request #4906 from keymanapp/fix/linux/cherry/4876-legacy-non-unicode
fix(linux): don't crash on legacy non-Unicode files 🍒
2021-04-20 02:02:41 -07:00
Darcy Wong
bb13047a89
Merge pull request #4927 from keymanapp/fix/android/empty-lexical-model-list-2
fix(android/engine): Don't set lexical model list to null
2021-04-20 14:41:40 +07:00
Darcy Wong
c5bce5021d fix(android/engine): Don't set lexical model list to null
Follow-on to #4926
2021-04-20 14:33:47 +07:00
Darcy Wong
46615d7b96
Merge pull request #4926 from keymanapp/fix/android/empty-lexical-model-list
fix(android/engine): Change getList() to return an empty list instead of null
2021-04-20 14:29:05 +07:00
Darcy Wong
cfd8abc744 fix(android/engine): Change getList() to return an empty list
This prevents the NullPointerException in CloudRepository.prepareResourcesUpdateQuery() when the list doesn't exist.
2021-04-20 14:06:57 +07:00
jahorton
e995a5cde1 docs(web): adjusts comments according to PR review 2021-04-20 14:01:46 +07:00
Darcy Wong
7bdf03e481
Merge pull request #4905 from keymanapp/fix/android/missing-font-file
fix(android/engine): Don't load woff fonts on Android N
2021-04-20 10:24:55 +07:00
Darcy Wong
1884c9cfaa chore(android/engine): Clean up getFontTypeface
Address review comments
2021-04-20 10:23:04 +07:00
Marc Durdin
568e4b2e7e fix(windows): help contents broken from tray menu
Fixes #4874.

Opening product help from the tray menu would end up at a broken page.

Given the title of the link is "Help Contents", I have opted to open at
the help contents... (rather than the alternative of context/tray-menu).
2021-04-20 12:54:10 +10:00
Marc Durdin
a1cf52579e fix(windows): access violation closing text editor
Fixes #4848.

This error arose because the form was destroyed after kmshell.dpr
completes, which meant that sentry had already been destroyed. The
sentry call was simply to record a breadcrumb of the form being closed.

The fix is to move the lifecycle of the form into the `OpenTextEditor`
function. `OpenTextEditor` is used only by `initprog.RunKMCOM` and so it
is safe to remove the ApplicationRunning path of the code, which
simplifies the lifecycle of the form.
2021-04-20 12:42:10 +10:00
Marc Durdin
4fcc23eb40
Update initprog.pas 2021-04-20 12:28:58 +10:00
Marc Durdin
3da6a28d79 fix(developer): avoid crash if .kpj.user file is malformed
Fixes #4917.

This updates `TProjectLoader` to use the same exception handling pattern
for loading the .kpj.user file as we use for the .kpj file.
2021-04-20 10:50:16 +10:00
Keyman Server
42a43485a7
Merge pull request #4915 from keymanapp/auto/version-master-15.0.31
auto: increment master version to 15.0.31
2021-04-20 04:02:58 +10:00
Keyman Build Agent
ea88b8e9c5 auto: increment master version to 15.0.31 2021-04-19 14:02:14 -04:00
Eberhard Beilharz
09fe5e86a5
feat(linux): Improve Sentry crash reporting
- don't log regular errors - those are handled and we report them
  to the user, but don't want to create a Sentry error
- log username in crash report
2021-04-19 18:56:06 +02:00
Eberhard Beilharz
28347053b3
chore(linux): Remove experimental scripts 2021-04-19 18:09:56 +02:00
Eberhard Beilharz
1c04d5200c
fix(linux): Don't crash on network problem (fixes #4911)
If the network is down or the server name can't be resolved we
shouldn't crash. This change logs an error instead.
2021-04-19 18:06:14 +02:00
Eberhard Beilharz
801810f72c
fix(linux): don't crash on legacy non-Unicode files
If we encounter a legacy non-Unicode file we now simply ignore the
file instead of crashing.

This fixes #4876.

(cherry picked from commit 59c45c4671)
2021-04-19 16:14:41 +02:00
Darcy Wong
b51434a611 fix(android/engine): Don't load woff fonts on Android N 2021-04-19 16:29:21 +07:00
Darcy Wong
8e8190664d
Merge pull request #4829 from keymanapp/chore/android/crowdin-id
chore(android,windows): Check in crowdin for Indonesian
2021-04-19 15:10:37 +07:00
Darcy Wong
e02d019d4f
Merge pull request #4895 from keymanapp/chore/common/update-crowdin-fr
chore(common): Update crowdin for French
2021-04-19 13:56:08 +07:00
Marc Durdin
7915429cf6 chore(windows): disable profile repair
Fixes #4893.
Fixes KEYMAN-WINDOWS-50.
Fixes KEYMAN-WINDOWS-4Z.

Profile repair was using legacy code for re-establishing Keyman TIP
profiles after they had been modified by a third party app or Windows.
However, with Keyman 14's new profile registration pattern, this is both
less likely to occur and also easier to resolve (just disabling and
re-enabling the keyboard should do it).

Thus, I have opted to disable the profile repair code as, with the way
it stands at present, it may well make things worse, even aside from the
crash, because of disparities between user and admin TSF settings.
2021-04-19 15:52:07 +10:00
Darcy Wong
5e66918f0b chore(common): Update crowdin for French 2021-04-19 10:12:58 +07:00
Darcy Wong
1b4f55bc28
Merge pull request #4863 from keymanapp/fix/developer/bcp47-info
fix(developer): Reduce non-canonical BCP 47 tag warning in PackageInfo to "Info"
2021-04-19 07:45:07 +07:00
Darcy Wong
bbccf6180f
Merge pull request #4865 from keymanapp/chore/android/pulaar-fulfulde
chore(android/engine): Rename "Pulaar" to "Pulaar-Fulfulde"
2021-04-19 07:44:28 +07:00
Marc Durdin
e86704b702 fix(windows): crash when installing TIP in some rare situations
May fix #4889.

In some situations, Keyman is unable to precisely match the user's
default language with its own keyboard settings. In this situation,
Keyman may crash when attempting to install the TIP, or may give a
spurious error such as "Too many transient languages" or similar.

I have been unable to reproduce the crash described in #4889 on my
machines so this is an attempted fix.

This does fix a bug with default languages in any case so is a good fix
to include: if the user's default language is not found in Keyman's LCID
table, then Keyman would fail to install the TIP when the keyboard is
installed and would return an error message (but not crash).
2021-04-19 10:39:49 +10:00
Marc Durdin
35c82ea128 fix(windows): handle invalid package names during install
Fixes #4886.

This patch includes 5 separate fixes for the various scenarios we
encountered during package installation.

1. RunTools.pas: don't attempt to install TIPs if package is not also
   being installed.

2. Keyman.Setup.System.OnlineResourceCheck.pas, OnlineUpdateCheck.pas:
   handle online update check for packages with spaces or periods in the
   id (legacy packages only).

3. Keyman.Setup.System.InstallInfo.pas: Handle browsers renaming
   downloaded files with `(n)` and `[n]` patterns as well as the current
   ` (n)` pattern.

4. Keyman.Setup.System.InstallInfo.pas: Handle browsers renaming
   downloaded files with `_n` pattern. See code comments for details.

5. Keyman.Configuration.System.TIPMaintenance.pas: Avoid crashing if
   `kmshell -install-tips-for-packages` is passed an invalid package
   name.

The crash is actually fixed in point 5 above, but the root causes are
addressed in the other points.
2021-04-19 08:25:31 +10:00
Darcy Wong
eaabf2bfa8 chore(windows): Check in crowdin for "id" 2021-04-07 08:35:38 +07:00
Darcy Wong
7b68533cc7 Merge branch 'master' into chore/android/crowdin-id 2021-04-07 08:03:26 +07:00
Keyman Server
c225d65a71
Merge pull request #4866 from keymanapp/auto/version-master-15.0.30
auto: increment master version to 15.0.30
2021-04-06 04:01:54 +10:00
Keyman Build Agent
46a5303bd3 auto: increment master version to 15.0.30 2021-04-05 14:01:10 -04:00
Darcy Wong
73114d2c55 chore(android/engine): Rename "Pulaar" to "Pulaar-Fulfulde" 2021-04-05 12:47:07 +07:00
Darcy Wong
d9e8a72597 fix(developer): Reduce non-canonical BCP 47 tag warning
In PackageInfoRefreshLexicalModels.ps. reduce non-canonical BCP 47 tag warning to "info" so they do not block the build.
2021-04-05 11:06:13 +07:00
Darcy Wong
681c6c5354
Merge pull request #4859 from keymanapp/chore/android/pulaar
chore(android/engine): Rename "Fula" to "Pulaar"
2021-04-05 09:12:42 +07:00
Darcy Wong
1c3a6f7081 chore(android): Merge branch 'master' into chore/android/crowdin-id 2021-04-05 08:00:13 +07:00
Darcy Wong
fecc73ccfe chore(android): Rename "Fula" to "Pulaar" 2021-04-05 07:55:18 +07:00
Keyman Server
c0d80d671b
Merge pull request #4857 from keymanapp/auto/version-master-15.0.29
auto: increment master version to 15.0.29
2021-04-03 05:02:10 +11:00
Keyman Build Agent
523002376f auto: increment master version to 15.0.29 2021-04-02 14:01:22 -04:00