Commit graph

778 commits

Author SHA1 Message Date
Marc Durdin
41fb5296e4
Update windows/src/developer/kmcmpdll/Compiler.cpp
additional braces

Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2020-10-05 13:07:39 +11:00
Marc Durdin
50ad8335ef
Apply suggestions from code review
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2020-10-02 09:18:49 +10:00
Marc Durdin
508441ebf4 fix(developer): coverity reports for compiler
Addresses Coverity reports for compiler.cpp and other files.

Note that whitespace was reformatted on this PR. You may want to compare
with ignore-whitespace.
2020-09-30 14:20:41 +10:00
Marc Durdin
dd4ac89468 fix(developer): coverity issues for compiler.cpp
CID 309307 through 309313, 309318, 309321, 309371, 309388.
2020-09-30 11:58:28 +10:00
Marc Durdin
d57bbbf20c fix(developer): missing dependencies 2020-09-25 11:10:25 +10:00
Marc Durdin
8460b8ff6c fix(developer): Project window and About window hardcoded urls
Relates to #3394.

Fixes all remaining hardcoded URLs in the Project / Welcome and the
About window in Keyman Developer.
2020-09-25 09:54:27 +10:00
Marc Durdin
25085ddfb3 fix(developer): hardcoded urls in debugger
Part of #3394.

Fixes two hard-coded URLs in the web debugger.
2020-09-24 14:54:16 +10:00
Marc Durdin
d5790ca9b6 fix(windows): cleanup pointer to int typecasts
Fixes #3084.

This does two things:

1. Cleans up a bunch of places where we used to use `(int)` typecasts
   for pointer math, which was problematic. We now use `(INT_PTR)` per
   MSDN https://docs.microsoft.com/en-us/windows/win32/winprog64/rules-for-using-pointers
   and then cast that down to `(int)` where necessary, e.g. when storing
   string lengths which are never going to be more than a few hundred
   characters! Doing this explicitly helps to clarify that we are aware
   of the typecast and believe it to be safe.

2. Adds in some build infrastructure for future use of Coverity Scan
   https://scan.coverity.com/ which we plan to use for further code
   quality updates. I have submitted the project to Coverity and are
   now waiting for approval so we can check results. Once we have
   approval, I do plan to add this to the nightly build (we need to
   keep submissions under 3 builds/day).

   Note: I have not yet added Keyman Core (Windows) to this project,
   nor are we currently building Keyman Core (macOS) or Keyman for
   Linux, but we should consider adding those in future.
2020-09-24 14:39:59 +10:00
Marc Durdin
6d0c3ff318
Merge pull request #3585 from keymanapp/fix/developer/3487-font-size-string
fix(developer): Touch font size should be string
2020-09-18 06:08:54 +10:00
Marc Durdin
50ab57faac
Merge pull request #3531 from keymanapp/feat/developer/3525-add-viewport-to-templates
feat(developer): add viewport to html templates
2020-09-18 06:08:10 +10:00
Marc Durdin
e996d82403 fix(developer): Touch font size should be string
Fixes #3487.

The fontsize property for touch layout elements was treated as
an integer by Developer but should be a string (as it might contain
units such as 'em').

To help with back-compat, updated the GetValue string overload
to ignore value type and return the stringified form, regardless of
the actual type, which should always work.
2020-09-16 04:54:43 +10:00
Marc Durdin
6d5ccbd719 fix(windows): add tests and improve canonical options 2020-09-01 09:41:33 +10:00
Marc Durdin
bdd5165013 chore: cleanup 2020-09-01 09:00:36 +10:00
Marc Durdin
84f0219541 fix(windows): canonicalization
Reworks the BCP 47 tag canonicalization algorithm.
2020-09-01 08:42:56 +10:00
Marc Durdin
22f165f39b feat(developer): add viewport to html templates 2020-08-28 15:25:46 +10:00
Marc Durdin
39edce5986 feat(windows): generate message consts at build time 2020-07-28 13:05:12 +10:00
Marc Durdin
640f523485 chore: cleanup global ExtPath 2020-07-07 06:57:08 +10:00
Marc Durdin
5e954a46f4 fix(developer/ide): double click to change layer update combo
Fixes #2658. Double-clicking on a layer change key will now update the combo
box at the top of the editor appropriately.
2020-06-13 13:14:48 +10:00
Marc Durdin
1bcb91e048 fix(developer/compilers): normalise touch layout on compile
Works around #119 on the compiler side. This normalises the touch layout file in the
compile phase, fixing integers which should be strings, etc. This means that
we no longer need to correct the issue in the Engine; a rebuild of affected
keyboards is sufficient (although of course we'll need a version bump in order
for them to be distributed.
2020-06-03 14:07:19 +10:00
Joshua A. Horton
0cf1ee449d change(developer/compilers): addresses PR review 2020-05-29 14:01:45 +07:00
Joshua A. Horton
b2c79ba51f fix(developer): copies package-lock.json for version consistency 2020-05-26 10:29:46 +07:00
Joshua A. Horton
abbcfb5e26 change(developer): packs ModelCompiler via npm pack, 7-zip 2020-05-26 09:54:13 +07:00
Marc Durdin
aaa8d6b8c5 fix(developer): updated project 2020-05-11 15:12:03 +10:00
Marc Durdin
aa4f1febe6 refactor(windows): use http instead of file for ui
Serve all Keyman Configuration dialogs over a local http server
instead of over file protocol. This is more secure and allows for
a bunch of things in the future, including simple online integration
and stable reporting.
2020-05-11 15:11:31 +10:00
Marc Durdin
214bd4652e chore(windows): Merge branch 'master' into fix/windows/sentry-cleanup 2020-04-30 05:04:13 +10:00
Marc Durdin
f73cdaade6 chore: merge stable history 2020-04-29 06:33:31 +10:00
Marc Durdin
cc325fa74d fix(windows): add environment to sentry init for js 2020-04-27 12:55:22 +10:00
Marc Durdin
ad9eb3a7f8 fix(developer): kmcomp debug data for sentry 2020-04-19 16:50:18 +10:00
Marc Durdin
f4a9fe1769 fix(windows): add crashpad_handler.exe to installers 2020-04-18 16:51:51 +10:00
Marc Durdin
4548040661
Merge pull request #2923 from keymanapp/feat/windows/test-sentry-integration
feat(windows): Testing Sentry integration
2020-04-08 06:02:00 +07:00
Marc Durdin
17cbc37f8c fix(windows): fixup missing sentry config 2020-04-02 17:11:45 +11:00
Marc Durdin
5928052d93 feat(windows): use crashpad and better call stacks
Also moves to sentry native 2.0.
2020-04-01 12:02:26 +11:00
Marc Durdin
3f41a6505f fix(developer): add calling convention 2020-03-31 20:20:02 +11:00
Marc Durdin
fed63d4690 feat(windows): sentry integration test points 2020-03-31 16:16:56 +11:00
Marc Durdin
8b3707571c fix(developer): kmdecomp needs new logger param 2020-03-30 16:36:39 +11:00
Marc Durdin
90f4a5109f feat(windows): report process start to sentry
Also handles -sentry-client-test-exception command line parameter
for console apps and tidies up Sentry instantiation.
2020-03-30 12:21:47 +11:00
Marc Durdin
c33199f6db chore(windows): dprojs 2020-03-30 12:07:41 +11:00
Marc Durdin
3886082cfa chore(windows): cleanup group projects 2020-03-30 12:05:49 +11:00
Marc Durdin
ba4074b11c fix(developer): use correct registry types for sentry options
Fixes #2910. Keyman Developer's options were using REG_SZ where Sentry
expected REG_DWORD.
2020-03-30 06:36:58 +11:00
Marc Durdin
591c05080a fix(developer): copy sentry to bin before building installer 2020-03-28 06:54:17 +11:00
Marc Durdin
00e58c13ec feat(windows): user control for upload to sentry 2020-03-27 17:50:51 +11:00
Marc Durdin
d33d429cd2 feat(windows): sentry x64 support 2020-03-27 14:40:59 +11:00
Marc Durdin
9779792059 fix(windows): remove errlogpath and cleanup 2020-03-27 11:23:51 +11:00
Marc Durdin
850d789764 chore: typo fix 2020-03-25 17:49:08 +11:00
Marc Durdin
e00d4ebe8e feat(windows): crash reports in CEF 2020-03-25 17:42:06 +11:00
Marc Durdin
b75e506782 feat(windows): sentry c++ wrappers 2020-03-25 07:38:29 +11:00
Marc Durdin
026b8b1d68 fix(windows): use Sentry canary exception 2020-03-23 07:49:25 +11:00
Marc Durdin
58a99b305a fix(windows): some sentry symbolication was not working 2020-03-23 07:44:50 +11:00
Marc Durdin
c1ce3974a9 fix(windows): include sources for sentry 2020-03-21 09:04:22 +11:00
Marc Durdin
b61949ca41 fix(windows): remove makejcldbg references 2020-03-18 20:26:55 +11:00