-
Notifications
You must be signed in to change notification settings - Fork 1k
Missing quotes around {build.path} in platform.txt #957
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
Comments
Hi @SlavDimov This is a know restriction.
Unfortunately not as Arduino interprets the command line and change/protect itself some characters. If you find an elegant way to solve this does not hesitate to provide a PR... |
Currently working on several scripts and maybe I found a way to ease all those stuff... |
Create prebuild.sh script to perform all required actions. Same script for all supported host OS. Fixes stm32duino#957 when path contains space. Signed-off-by: Frederic Pillon <[email protected]> fix space under windows
Create prebuild.sh script to perform all required actions. Same script for all supported host OS. Fixes stm32duino#957 when path contains space. Signed-off-by: Frederic Pillon <[email protected]>
Hi @SlavDimov |
Create prebuild.sh script to perform all required actions. Same script for all supported host OS. Fixes stm32duino#957 when path contains space. Signed-off-by: Frederic Pillon <[email protected]>
Create prebuild.sh script to perform all required actions. Same script for all supported host OS. Fixes #957 when path contains space. Signed-off-by: Frederic Pillon <[email protected]>
Hey @fpistm, |
welcome |
Describe the bug
The missing quotes around {build.path} in the prebuild hooks cause the build to fail for paths containing spaces.
To Reproduce
VScode version: 1.42.1
VSCode arduino extension version: 0.2.29
Arduino IDE version: 1.85
Steps to reproduce the behavior:
You should see something like
Expected behavior
Successful build
Desktop (please complete the following information):
Board (please complete the following information):
Any STM32 board
Additional context
Possible fix:
In the platform.txt it the following lines can be observed:
Notice how the commands for Linux and macOS do not have quotes around {build.path}. Changing a prebuild hook to something like this:
Note the quotes around "{build.path}/sketch". Changes the error output to:
I am not sure if I am overlooking something with the escaped quotes syntax or it crashes somewhere further down. However, I suspect it should be easy to fix.
Related Issue
Originaly opened as microsoft/vscode-arduino#974
The text was updated successfully, but these errors were encountered: