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

fix(developer): correct handling of trailing spaces by GetDelimitedString() in kmcmplib compiler #11938

Conversation

markcsinclair
Copy link
Contributor

@markcsinclair markcsinclair commented Jul 8, 2024

Fix GetDelimitedString() to correctly handle trailing spaces

Fixes: #11937

Tests for GetDelimitedString() in gtest-compiler-test.cpp

@keymanapp-test-bot skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Jul 8, 2024

User Test Results

Test specification and instructions

User tests are not required

…ect-handling-of-trailing-spaces-by-GetDelimitedString

# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
@markcsinclair
Copy link
Contributor Author

Ready for review.

Once merged, this should fix four commented-out test cases in #11663

@markcsinclair markcsinclair marked this pull request as ready for review July 9, 2024 11:17
@darcywong00 darcywong00 modified the milestones: A18S6, A18S7 Jul 19, 2024
…ect-handling-of-trailing-spaces-by-GetDelimitedString

# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
Copy link
Member

@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

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

LGTM

…ect-handling-of-trailing-spaces-by-GetDelimitedString

# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
@markcsinclair
Copy link
Contributor Author

An additional bug in the handling of spaces, but no argument, in the delimited string was identified in using test cases that had been previously commented out in #11663. This has required an additional one-line fix, and eight supporting test cases.

@markcsinclair markcsinclair merged commit 1449f13 into master Jul 23, 2024
4 checks passed
@markcsinclair markcsinclair deleted the fix/developer/11937-correct-handling-of-trailing-spaces-by-GetDelimitedString branch July 23, 2024 18:58
@mcdurdin
Copy link
Member

mcdurdin commented Jul 24, 2024

An additional bug in the handling of spaces, but no argument, in the delimited string was identified in using test cases that had been previously commented out in #11663. This has required an additional one-line fix, and eight supporting test cases.

Process note: generally, if you make significant changes to a PR following a review, it should either be re-reviewed or the changes should be added to a follow-up PR. We try to keep changes post-approval of a PR to nits only.

I have reviewed those changes and they LGTM.

@markcsinclair
Copy link
Contributor Author

It's a fair cop, Your Honour! I had hoped to get these interlinked PRs merged in the short gap between your return and my departure to holiday, and so pushed past what I know to be good practice - sorry.

@mcdurdin
Copy link
Member

No worries mate, all good 😁

markcsinclair added a commit that referenced this pull request Jul 24, 2024
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.74-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.

bug(developer): incorrect handling of trailing spaces by GetDelimitedString() in kmcmplib compiler
4 participants