Skip to content

Arduino 1.8.13 on Mac OS Big Sur : compile fails if space in path of .ino file location #11312

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

Closed
xavbart opened this issue Feb 28, 2021 · 5 comments
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

Comments

@xavbart
Copy link

xavbart commented Feb 28, 2021

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.

@xavbart
Copy link
Author

xavbart commented Feb 28, 2021

Arduino version 1.8.13 on Mac OS Big Sur Beta 11.3 Beta (20E5186d)

@per1234
Copy link
Collaborator

per1234 commented Feb 28, 2021

Hi @xavbart. Thanks for your report. I see this is an error specific to the 3rd party esp32 boards platform:
espressif/arduino-esp32#4579
Arduino does not maintain that software, so I'll go ahead and close this as off topic for this issue tracker. You may want to subscribe to espressif/arduino-esp32#4579 to get updates on the progress of the fix for this issue.

I see there is already a proposed fix, so you can try that out if you like:
espressif/arduino-esp32#4868

@per1234 per1234 closed this as completed Feb 28, 2021
@per1234 per1234 added 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 labels Feb 28, 2021
@xavbart
Copy link
Author

xavbart commented Mar 1, 2021

Thanks. My search was not good prior to raising it!

@damianacatanoso
Copy link

damianacatanoso commented Mar 22, 2021

Hi @xavbart, I had the same issue. I had downloaded my code from a google drive folder, compressed in .zip. After download, Mac automatically extracted my files in the "download" folder. Running the code in that folder gave me the exit status 64 error. I just copied and pasted the code outside of that folder, say Desktop, and it compiled just fine. I suggest you try relocating your code somewhere else and give it a try!

@xavbart
Copy link
Author

xavbart commented Mar 23, 2021

Hi @xavbart, I had the same issue.

I can compile my code just fine, not to worry, moving projects to another place, it is just that the issue prevents from using normal paths on Mac and that is something that should be sorted but it is linked to espressif contribution. Hopefully will get sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants