You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't found this to actually cause a problem; it's just not the behavior I expect. Not a big deal, but I thought I should report it anyway.
The issue does not occur if I use the absolute path to the file, or the relative path to the file when the command is run from outside the sketch folder.
The issue does not occur at b62c339 so it was introduced by 6718cf4. I notice the same thing occurs even with previous versions of Arduino CLI when you ran arduino-cli compile --fqbn arduino:avr:uno ./.
Of course, it's not necessary to provide the sketch argument when the command is run from the sketch folder, but I do think users will be likely to do this. I encountered this issue while testing to see if #355 (comment) had been resolved by #690, which is a report of this usage. #51 (comment) is another.
Examples of the same use pattern with arduino-cli upload (which turns out to actually cause an error):
Bug Report
Current behavior
If I run
arduino-cli compile
from the sketch folder and pass the sketch file name as the argument:or
the component of the output file name that is expected to be the sketch name (
Foo
) is instead.
:I haven't found this to actually cause a problem; it's just not the behavior I expect. Not a big deal, but I thought I should report it anyway.
The issue does not occur if I use the absolute path to the file, or the relative path to the file when the command is run from outside the sketch folder.
The issue does not occur at b62c339 so it was introduced by 6718cf4. I notice the same thing occurs even with previous versions of Arduino CLI when you ran
arduino-cli compile --fqbn arduino:avr:uno ./
.Of course, it's not necessary to provide the sketch argument when the command is run from the sketch folder, but I do think users will be likely to do this. I encountered this issue while testing to see if #355 (comment) had been resolved by #690, which is a report of this usage. #51 (comment) is another.
Examples of the same use pattern with
arduino-cli upload
(which turns out to actually cause an error):Expected behavior
arduino-cli compile --fqbn arduino:avr:uno Foo.ino
should result in output file names that start withFoo.arduino.avr.uno.
Environment
arduino-cli version
): 0.10.0-rc1 Commit: 6718cf4The text was updated successfully, but these errors were encountered: