Skip to content

arduino-builder incompatible with paths that contain , or ; #276

Closed
@per1234

Description

@per1234

Using Arduino IDE Beta Build 61 and Arduino IDE 1.8.6 Hourly Build 2018/05/28 09:33 under Windows 10 64 bit

  1. File > Preferences > Sketchbook location > set the sketchbook location to a folder named foo;,bar > OK
  2. Sketch > Verify/Compile - Compilation fails:
C:\Program Files (x86)\ArduinoIDE\arduino-PR-beta1.9-BUILD-61\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\ArduinoIDE\arduino-PR-beta1.9-BUILD-61\hardware -hardware C:\Users\per\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\ArduinoIDE\arduino-PR-beta1.9-BUILD-61\tools-builder -tools C:\Program Files (x86)\ArduinoIDE\arduino-PR-beta1.9-BUILD-61\hardware\tools\avr -tools C:\Users\per\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\ArduinoIDE\arduino-PR-beta1.9-BUILD-61\libraries -libraries E:\foo;,bar\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10900 -build-path C:\Users\per\AppData\Local\Temp\arduino_build_189079 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\per\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14 -prefs=runtime.tools.avr-gcc.path=C:\Users\per\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\ArduinoIDE\arduino-PR-beta1.9-BUILD-61\hardware\tools\avr -verbose C:\Users\per\AppData\Local\Temp\untitled693801815.tmp\sketch_may31a\sketch_may31a.ino
open E:\foo: The system cannot find the file specified.

A similar error occurs when the Arduino IDE is installed under a path that contains ,. The same would surely occur with an installation path that contained ; but the Arduino IDE won't start under this path (arduino/Arduino#7658).

If arduino-builder can't be made to support these characters then I recommend the sketchbook preference reject paths with them in it.

Originally reported at:
http://forum.arduino.cc/index.php?topic=550716

Metadata

Metadata

Assignees

No one assigned

    Labels

    conclusion: resolvedIssue was resolvedhelp wantedAssistance from the community is especially welcometopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions