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

chore(developer): support filename field in kmcmplib compiler messages 🌋 #12061

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

mcdurdin
Copy link
Member

Relates-to: #10866

@keymanapp-test-bot skip

@mcdurdin mcdurdin requested a review from darcywong00 as a code owner July 30, 2024 06:11
@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

//TODO: message.filename =
(*kmcmp::msgproc)(message, msgprocContext);
message.filename = kmcmp::messageFilename;
(*kmcmp::msgproc)(message, kmcmp::msgprocContext);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to check that kmcmp::msgproc != nullptr ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question. This is done in CompilerInterfaces.cpp:

if (!messageProc || !loadFileProc || !pszInfile) {
ReportCompilerMessage(KmnCompilerMessages::FATAL_BadCallParams);
return FALSE;
}

@darcywong00 darcywong00 modified the milestones: A18S7, A18S8 Aug 2, 2024
Base automatically changed from refactor/developer/kmcmplib-rename-error-message-functions to master August 3, 2024 10:56
@mcdurdin mcdurdin merged commit 6d81177 into master Aug 3, 2024
5 checks passed
@mcdurdin mcdurdin deleted the chore/developer/support-message-filename-kmcmplib branch August 3, 2024 10:57
@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.

4 participants