Closed rickmacgillis closed 1 year ago
Spaces and other special characters are always a bad idea
Hello Rick, thanks for well described issue and the video. I'm a bit late (actually Jason is quick :)) but I just want to mention that spaces in names are pretty often a bad idea. We'll check if there will be any action for this being fixed and let you know.
Generally ArduinoIDE also does not use spaces in the sketch name and folder. It would always turn the spaces into underscores. Due to other parser issues, we could not escape the sketch location everywhere in platform.txt
Yeah, I guess. I've written Software for over 20 years and never used spaces in filenames. Not sure why I started that with Arduino.
@rickmacgillis Can this issue be closed?
No. If nothing else, the error message needs to be more descriptive. I agree that we shouldn't use spaces, but spaces shouldn't cause it to crash. Instead it should gracefully handle the exception and tell the user why it failed.
Please open an issue here: https://github.com/espressif/esptool/issues
Board
ESP-WROOM-32
Device Description
N/A
Hardware Configuration
N/A
Version
v2.0.6
IDE Name
Arduino IDE
Operating System
Linux Mint 21.1 Vera
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
921600
Description
The sketch compiles fine with the below workaround, but without it, it has errors.
Video showing the problem at hand: https://www.loom.com/share/ea25f6981dbe4e1590b02615729f390a
Issue: If the ino file has a space in it, it gets incorrectly passed to esptool, and causes it to error out:
esptool: error: unrecognized arguments: alarm.ino.bootloader.bin /home/manwithnobrows/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32/bin/bootloader_qio_80m.elf
(My file is named "inside bus alarm.ino".)
If I rename the file to not use spaces, then it compiles just fine. This appears to be an issue with how parameters are passed to esptool, by the ESP32 board package.
Sketch
Debug Message