-
Notifications
You must be signed in to change notification settings - Fork 444
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
the C preprocessor is being invoked in such a way that ASCII spaces in pathnames of P4 files are unacceptable #3240
Comments
We just use popen. |
However, with Mihai's fix now merged, it should be possible to work-around this problem by directly running the appropriate compiler driver. For example, the following command should work as expected:
|
@rst0git, @mbudiu-vmw … @rst0git wrote:
Actually, a quick experiment in Python3 shows that this is not an inherent {limitation of / flaw in} the standard “argparse” library… at least not with mainline/standard Python3 with this version signature:
… running on Mac OS X 10.11.6 with this result from “uname -a” [hostname elided]:
“tar.gz” attachment with both code and test data: argparse_vs._spaces_v1_and_v2_and_test_data.tar.gz [blank lines inserted for {clarity in spite of text re-wrapping}]
——— Python3 code:
|
Fixes: p4lang#3240 Signed-off-by: Radostin Stoyanov <[email protected]>
Fixes: #3240 Signed-off-by: Radostin Stoyanov <[email protected]>
Fixes: p4lang#3240 Signed-off-by: Radostin Stoyanov <[email protected]>
As of this writing, even with my recent driver improvements (mostly/entirely about providing good error feedback when the compiler`s user makes a mistake), the C preprocessor is being invoked in such a way that ASCII spaces in the input pathnames of P4 files are unacceptable. This only affects top-level P4 files, i.e. it does not affect P4 files that are only accessed via
#include
, so I conclude that this is a driver bug.[i.e. it is an empty file]
[i.e. no avalanche of nonsensical error messages]
The text was updated successfully, but these errors were encountered: