-
-
Notifications
You must be signed in to change notification settings - Fork 7k
CLI should look in sketchbook for sketch #9266
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
Comments
Probably related with arduino/arduino-builder#342 . @cmaglie should we provide an hourly build with that builder? |
I think this is java-related, @slomobileAdmin which version of the IDE are you running? |
The above was the Linux ARM 64bit version of the IDE running on a Jetson Nano with Ubuntu 18.04 with MATE desktop installed via apt-get, local terminal session. Teensyduino 1.48 beta #1 is also installed and generating Java exceptions but I assumed they were unrelated to the above issue so I stripped them out of the above quoted terminal session for readability, perhaps I stripped too much. Information regarding that other issue is located in this thread
This is from a different Ubuntu machine running Arduino 1.8.9 Linux 64bit version, x86_64
|
@slomobileAdmin ah now I re-read it and got what your request was. The relative path method requires you to be in the same folder of the .ino (and I believe it's always been like this, for the principle of least astonishment). |
@facchinm I do see your point. Yet the sketchbook as a place to store sketches, as well as the requirement to have a sketch in a folder of the same name is an Arduino convention, not Unix. Providing the requested functionality need not break relative paths. Search for absolute and relative paths first. If they fail to find a candidate, only then search the sketchbook. The arduino requirement for sketches in same named folders breaks the common practice of searching for code files in a common folder. This functionality provides a workaround for that break. |
https://linux.die.net/man/3/filename provides the Linux method and precedent to do this.
|
@facchinm surely this error should be reported in a more informative matter? As you mentioned wanting to close this. I received a similar java error message to this.. Not sure if it's related. |
According to the man page
arduino [FILE.ino…]
"A single .ino file should be given. If the sketch contains multiple .ino files, any one can be specified on the commandline, but the entire sketch will be compiled."
It says nothing about requiring an absolute path. It is convenient and reasonable to assume, given just a sketch file name, arduino will look in the sketchbook for a folder with the same name as sketch minus .ino, then look for the sketch and use it. It does not.
The text was updated successfully, but these errors were encountered: