-
-
Notifications
You must be signed in to change notification settings - Fork 621
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 Codelite/gmake2 buildmessage
escaping.
#1913
Fix Codelite/gmake2 buildmessage
escaping.
#1913
Conversation
efe335b
to
4d38da0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gmake2 also needs a new test for the escaping.
@@ -60,7 +60,7 @@ | |||
value = 0 | |||
} | |||
|
|||
buildmessage 'Rule-ing %{file.name}' | |||
buildmessage "Rule'ing %{file.name}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did -
change to '
? Seems like an unintended/unnecessary change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was to show/test single quote escaping.
I can revert that part if you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be done in a dedicated test for escaping, as mentioned in my other comment, as this looks like a typo and will likely end up being changed back eventually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roll backed.
@@ -213,15 +213,15 @@ test2.obj: test2.rule | |||
buildinputs { "toto.txt", "extra_dependency" } | |||
buildoutputs { "toto.c" } | |||
buildcommands { "test", "test toto.c" } | |||
buildmessage "Some message" | |||
buildmessage '"Some message"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should avoid hijacking existing tests, you should create a new test explicitly for testing the escaping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roll backed.
Dedicated test done.
4d38da0
to
8ca0618
Compare
Unrelated to my changes. :-) |
8ca0618
to
5b02223
Compare
What does this PR do?
Fix escaping for
buildmessage
for gmake2 and codeliteHow does this PR change Premake's behavior?
Escape double quote and backslash in
quoted
Anything else we should know?
Tested with https://github.com/Jarod42/premake-sample-projects/actions with branch custom_rule_check_quote_in_message
Did you check all the boxes?
closes #XXXX
in comment to auto-close issue when PR is merged)You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!