-
-
Notifications
You must be signed in to change notification settings - Fork 398
.pde file extension not supported by compile when only folder specified #386
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
Labels
type: enhancement
Proposed improvement
Comments
lluiscampos
added a commit
to lluiscampos/arduino-cli
that referenced
this issue
Nov 20, 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 <lluis.campos@northern.tech>
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 <lluis.campos@northern.tech>
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 <lluis.campos@northern.tech>
rsora
pushed a commit
that referenced
this issue
Nov 28, 2019
…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 <lluis.campos@northern.tech>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: