-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
Space in compilator path not escaped in compilation_db #4998
Comments
Could you point to the specification that documents |
JSON Compilation Database Format Specification allows shell escaping inside of the command string. Windows Command Prompt syntax remarks states that a path with spaces should be enclosed in quotation marks. To achieve this, the quotation marks have to be inside of the JSON string, and according to the JSON specification should be escaped as |
How do we reproduce this issue? With which type of software do you use Indeed, the end command runner (3rd party software, shell, etc) is responsible to handle "spaces" in the path. |
Parsing the
The |
Thanks for the report. Please re-test with |
Just tried it out, and the problem's gone. Thank you. |
If you’ve found a bug, please provide an information below.
Configuration
Operating system:
Windows, with a username who has a space in the username.
PlatformIO Version (
platformio --version
):PlatformIO Core, version 6.1.16
Description of problem
When the path to the
.platformio
contains a space (for example in the username), thecompile_commands.json
produced by runningpio run -t compiledb
does not escape the compiler executable path in thecommand
fields.Steps to Reproduce
pio run -t compiledb
Actual Results
Example of a malformed command:
Expected Results
Notice the added
\"
around the compiler executable.If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
The text was updated successfully, but these errors were encountered: