-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Double escape defines in gnuarmeclipse export #4636
Conversation
Nope. Those are required to allow it to build
…On Jun 26, 2017 12:19 PM, "JojoS" ***@***.***> wrote:
this fix works, but it leaves backslashes that can be removed?
[image: grafik]
<https://user-images.githubusercontent.com/6775562/27551586-44ffb636-5aa4-11e7-9cb2-cb32cb30c614.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4636 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAp1Yd1I2wIOjcGthydo9Yh_fhGq218dks5sH-gSgaJpZM4OFlav>
.
|
Oh joy. A travis bug on master. |
@JojoS62 Let me explain why those extra escapes are required. First, we are using this define in place of an include file. We cannot quote the argument to str.replace("\"", "\\\"") Which will prevent the shell from expanding the quotes itself. Now we need to pass that value, backslashes, quotes and all, to eclipse. That is done by escaping the value for HTML, a function built into Jinja2. TL;DR: backslashes are needed to build correctly. |
thanks, and you're right, without backslashes the compiler complains. |
just one more thing for my curiosity: |
@JojoS62 I agree that It would be cleaner to not escape the macro for the makefile under eclipse. |
/morph export-build |
Result: FAILUREYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 75 Exporter Build failed! |
sigh these errors are probably on master... |
Fixes a bug where quoting gets stripped by the shell used in the makefile and another bug where the lack of escaping would cause parser errors in eclipse.
743909b
to
a5a5fa3
Compare
/morph export-build |
Result: FAILUREYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 76 Exporter Build failed! |
/morph export-build |
Result: FAILUREYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 78 Exporter Build failed! |
/morph export-build |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 82 All exports and builds passed! |
Wohooo! LGTM!! |
Fixes a bug where quoting gets stripped by the shell used in the makefile
and another bug where the lack of escaping would cause parser errors in
eclipse.
Resolves #4622