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
In the early days of Arduino, the .pde file extension of Processing sketches was used for Arduino sketches. Later, support for the dedicated .ino file extension was added, but support for .pde was retained. For this reason, some popular libraries still use the .pde extensions for their example sketches and the authors see no reason to bother changing that (reference).
I have a sketch:
Foo
|_Foo.pde
If I run the command:
arduino-cli compile --fqbn arduino:avr:uno Foo
It has the error:
Error during build: build failed: unable to find the main sketch file: open E:\Foo\Foo.ino: The system cannot find the file specified.
arduino-cli compile should work with sketches that use the .pde extension when only specifying the sketch folder as the path argument (as is recommended by the inline help).
Environment
CLI version (output of arduino-cli version): nightly Commit: 3e0b555
OS and platform: Windows 10 64 bit
The text was updated successfully, but these errors were encountered:
…#386)
When only specifying folder, the logic will try both <DirName>.ino and
<DirName>.pde as the main sketch file. If both are found, and error is
also thrown (it would break on compile later on).
Added couple of unit tests also.
Signed-off-by: Lluis Campos <[email protected]>
…#386)
When only specifying folder, the logic will try both <DirName>.ino and
<DirName>.pde as the main sketch file. If both are found, and error is
also thrown (it would break on compile later on).
Added couple of unit tests also.
Signed-off-by: Lluis Campos <[email protected]>
lluiscampos
added a commit
to lluiscampos/arduino-cli
that referenced
this issue
Nov 28, 2019
…#386)
When only specifying folder, the logic will try both <DirName>.ino and
<DirName>.pde as the main sketch file. If both are found, and error is
also thrown (it would break on compile later on).
Added couple of unit tests also.
Signed-off-by: Lluis Campos <[email protected]>
…490)
When only specifying folder, the logic will try both <DirName>.ino and
<DirName>.pde as the main sketch file. If both are found, and error is
also thrown (it would break on compile later on).
Added couple of unit tests also.
Signed-off-by: Lluis Campos <[email protected]>
Bug Report
Current behavior
In the early days of Arduino, the .pde file extension of Processing sketches was used for Arduino sketches. Later, support for the dedicated .ino file extension was added, but support for .pde was retained. For this reason, some popular libraries still use the .pde extensions for their example sketches and the authors see no reason to bother changing that (reference).
I have a sketch:
If I run the command:
It has the error:
I can successfully run the command:
but that will generate a default output filename that breaks the basic upload command (as reported in #355):
Expected behavior
arduino-cli compile
should work with sketches that use the .pde extension when only specifying the sketch folder as the path argument (as is recommended by the inline help).Environment
arduino-cli version
): nightly Commit: 3e0b555The text was updated successfully, but these errors were encountered: