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

refactor(developer): move kmcmplib message construction to kmc-kmn 🌋 #12059

Merged

Conversation

mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Jul 30, 2024

  • Remove compiler message definitions from kmcmplib
  • Add parameterization to compiler message structures
  • Translate parameters for existing parameterized messages (except for ERROR_InvalidToken, which requires a bigger refactor of GetXStringImpl() and many friends)
  • Add columnNumber to message structures (not yet used in kmc-kmn)
  • Add filename to message structures (not yet used in kmcmplib)
  • Rename INFO_Info to INFO_MinimumCoreEngineVersion and INFO_MinimumEngineVersion to INFO_MinimumWebEngineVersion

Fixes: #10866

@keymanapp-test-bot skip

* Remove compiler message definitions from kmcmplib
* Add parameterization to compiler message structures
* Translate parameters for existing parameterized messages (except for
  `ERROR_InvalidToken`, which requires a bigger refactor of
  `GetXStringImpl()` and many friends)
* Add columnNumber to message structures (not yet used in kmc-kmn)
* Add filename to message structures (not yet used in kmcmplib)
* Rename `INFO_Info` to `INFO_MinimumCoreEngineVersion` and
  `INFO_MinimumEngineVersion` to `INFO_MinimumWebEngineVersion`

Relates-to: #10866
@mcdurdin mcdurdin requested a review from darcywong00 as a code owner July 30, 2024 03:01
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Jul 30, 2024

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

Comment on lines +39 to +43
#define MESSAGE_SEVERITY_MASK 0x00F00000 // includes reserved bits, 16 possible severity levels
#define MESSAGE_ERROR_MASK 0x000FFFFF // error | namespace
#define MESSAGE_NAMESPACE_MASK 0x000FF000 // 256 possible namespaces
#define MESSAGE_BASEERROR_MASK 0x00000FFF // error code, 2,048 possible error codes per namespace
#define MESSAGE_RESERVED_MASK 0xFF000000 // do not use these error values at this time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks out with some of the code changes I noticed within #12044; the changes in #12044 that triggered the connection for me all line up well with MESSAGE_SEVERITY_MASK there.

@darcywong00 darcywong00 modified the milestones: A18S7, A18S8 Aug 2, 2024
Base automatically changed from refactor/developer/kmcmplib-yak-shave-more-bools to master August 3, 2024 02:13
@mcdurdin mcdurdin merged commit 67b4005 into master Aug 3, 2024
4 checks passed
@mcdurdin mcdurdin deleted the refactor/developer/kmcmplib-construct-messages-in-kmc-kmn branch August 3, 2024 10:56
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.81-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore(developer): kmcmplib and kmc-kmn/kmw have shared errors with different strings
4 participants