Arduino 1.8.13 on Mac OS Big Sur : compile fails if space in path of .ino file location #11312
Labels
arduino-cli
Related to the arduino-cli tool
Component: Compilation
Related to compilation of Arduino sketches
Type: Bug
Type: Invalid
Off topic for this repository, or a bug report determined to not actually represent a bug
As reported here:
https://forum.arduino.cc/index.php?topic=728254.0#main_content_section
and confirmed by my tests,
if the path to the .ino file has one or many spaces in the name of the directories enclosing it (no issue with spaces in the .ino filename), the compiler fails with error 64.
The error is actually quite transparent:
bash: line 0: [: too many arguments usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory exit status 64 /Applications/Arduino.app/Contents/Java/arduino-builder returned 64 Error compiling for board ESP32 Dev Module.
I guess the argument giving the path to the file to compile should be properly quoted.
The text was updated successfully, but these errors were encountered: