Skip to content

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

Closed
@xavbart

Description

@xavbart

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.

Activity

xavbart

xavbart commented on Feb 28, 2021

@xavbart
Author

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

per1234

per1234 commented on Feb 28, 2021

@per1234
Collaborator

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

added
arduino-cliRelated to the arduino-cli tool
Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug
on Feb 28, 2021
xavbart

xavbart commented on Mar 1, 2021

@xavbart
Author

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

damianacatanoso

damianacatanoso commented on Mar 22, 2021

@damianacatanoso

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

xavbart commented on Mar 23, 2021

@xavbart
Author

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CompilationRelated to compilation of Arduino sketchesType: BugType: InvalidOff topic for this repository, or a bug report determined to not actually represent a bugarduino-cliRelated to the arduino-cli tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

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