Open
Description
Path "/home/user/sketch/sketch.ino" is accepted. Path "./sketch.ino" results in an error, as the sketch is not recognized to reside in parent directory "sketch".
Translating all paths to absolute does work, as demonstrated by the linked script.
https://github.com/mirage335/arduinoUbiquitous/blob/master/_prog/core.sh#L109
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
facchinm commentedon May 28, 2018
Hi @mirage335 ,
which IDE version are you using? I just tested with 1.9.0 (Beta) and it correctly compiles sketches specified with relative paths.
mirage335 commentedon May 29, 2018
Interesting, will have to try the beta. Was using version 1.8.5, with SAMD core 1.6.18 and 1.6.16-build-172, as currently contained by arduinoUbiquitous .
So, maybe not a bug with the current Arduino codebase. Then again, it is also possible this is a java issue. In either case, file parameter expansion could still be a useful workaround with older versions or java runtimes.
Thanks for looking into this.
mirage335 commentedon May 30, 2018
Same error with beta and nightly. Additionally, relative paths simply do not work with Debian's built-in Arduino installation, opening a blank sketch, without error message.
Perhaps it may be significant that I am using Debian Stable.
cmaglie commentedon May 30, 2018
I can't reproduce it locally:
could you provide a step-by-step sequence of command to reproduce it?
mirage335 commentedon May 31, 2018
Try running just "../arduino-nightly/arduino ./sketch.ino" . If that works, this may be a Debian specific issue.