Rename .pde in arduino examples to .ino

518 views
Skip to first unread message

Dre West

unread,
Jul 23, 2019, 5:21:25 AM7/23/19
to Developers
I've found more and more people are starting to get confused about .pde and .ino when trying to teach them a bit of processing and arduino.

there are even some people on github who argue for the exsistance of .pde in arduino-based tooling; simply because "arduino has it, it works, without pde will break compatability" 

As it stands, i can't use processing and arduino in vscode (using arduino extensions) because people on that argue that arduino uses pde, so, so should the Arduino extension.

Could I submit and get accepted a PR to rename the example code files from PDE into INO, so that it gets the message across that INO is the arduino filetype, "straight from the horses mouth"  ?

I don't see any possible breaking changes; the arduino can still open pde, just the examples "by default" are already in the ino filetype..

Matthijs Kooijman

unread,
Jul 23, 2019, 5:23:33 AM7/23/19
to devel...@arduino.cc
Hi Dre,

> Could I submit and get accepted a PR to rename the example code files from
> PDE into INO, so that it gets the message across that INO is the arduino
> filetype, "straight from the horses mouth" ?
I'm not the one making this decision, but I would be much in favor of
this, since .pde has been deprecated for a long time. I expect this
would be likely to be accepted (do make sure to really refrain from any
other changes in the same PR, though).

Gr.

Matthijs
signature.asc

Juraj Andrássy

unread,
Jul 23, 2019, 10:37:06 AM7/23/19
to Developers

Sorry, but, where in current Arduino IDE or official libraries do you see pde files?

Peter Feerick

unread,
Jul 23, 2019, 6:19:49 PM7/23/19
to devel...@arduino.cc
I just ran a quick search against the v1.8.9 and v1.6.12 examples... and not a single .pde file. There were a couple of examples in 1.5.8 in the Wire lib, but that was all. So unless I've missed something, no PR is needed as it's already been done. Those people who are saying that .pde is still the official file extension should be whacked around the head with the note on the arduino.cc website ... .pde was depreciated in v1.0! :-P


NB: Versions of the Arduino Software (IDE) prior to 1.0 saved sketches with the extension .pde. It is possible to open these files with version 1.0, you will be prompted to save the sketch with the .ino extension on save.

 
Peter Feerick
BIT, BLDes, LLB CQU


--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
To view this discussion on the web visit https://groups.google.com/a/arduino.cc/d/msgid/developers/b15a60b1-549d-4284-831e-d85c292869ea%40arduino.cc.

Dre West

unread,
Jul 23, 2019, 6:26:11 PM7/23/19
to Developers
Yes, you're right. I've just searched and couldn't find any. I had always thought that the examples were in pde ( from a past, past experience) and assumed they still were. Recent discussions on my side of the fence brought it up again.

Sorry to bother, but I'll take that comment and frame it on my wall for any further discussions about it. Thanks!

Regards
Dre

Massimo Banzi

unread,
Jul 24, 2019, 5:53:49 AM7/24/19
to Arduino Developers
Unfortunately there is still a number of people using 1.0.x IDEs….


There might be a few .pde files in third party libraries that haven’t been updated in a while

M

--

Massimo Banzi
Co-Founder



Adrian Godwin

unread,
Jul 24, 2019, 6:22:29 AM7/24/19
to devel...@arduino.cc
The teensy examples still seem to be pde and some other 3rd-party libraries might also be. That's obviously not something Arduino can change.

Paul Stoffregen

unread,
Jul 24, 2019, 6:14:02 PM7/24/19
to devel...@arduino.cc
I wasn't planning to chime into this conversation, but since you specifically brought up the examples and libs I maintain...

My general philosophy to software maintenance is "if it ain't broke, don't fix it".  As long at the latest non-beta software release on Arduino's website allows both .ino and .pde files in examples, without any sort of warning or error, I personally consider .pde examples in very old libraries as "ain't broke".

You may disagree.  That's fine with me.  You're free to maintain your own libraries and examples however you like.

Of course when Arduino someday discontinues support for .pde files (in an official non-beta release), or even starting printing a warning, I will update all my examples and libraries.  But until that day, I have absolutely no intention to change any of my examples or libraries.  So far, it ain't broke, so I'm not fixing.

Dre West

unread,
Jul 25, 2019, 2:03:38 AM7/25/19
to Developers

for file in "**/*.pde" ; do mv "$file" "${file/.pde/.ino}"; done
 


On Thursday, 25 July 2019 08:14:02 UTC+10, paul wrote:
I wasn't planning to chime into this conversation, but since you specifically brought up the examples and libs I maintain...

My general philosophy to software maintenance is "if it ain't broke, don't fix it".  As long at the latest non-beta software release on Arduino's website allows both .ino and .pde files in examples, without any sort of warning or error, I personally consider .pde examples in very old libraries as "ain't broke".

You may disagree.  That's fine with me.  You're free to maintain your own libraries and examples however you like.

Of course when Arduino someday discontinues support for .pde files (in an official non-beta release), or even starting printing a warning, I will update all my examples and libraries.  But until that day, I have absolutely no intention to change any of my examples or libraries.  So far, it ain't broke, so I'm not fixing.



On 7/24/19 3:22 AM, Adrian Godwin wrote:
The teensy examples still seem to be pde and some other 3rd-party libraries might also be. That's obviously not something Arduino can change.

On Wed, Jul 24, 2019 at 10:53 AM Massimo Banzi <m....@arduino.cc> wrote:
Unfortunately there is still a number of people using 1.0.x IDEs….


There might be a few .pde files in third party libraries that haven’t been updated in a while

M

--

Massimo Banzi
Co-Founder


On 24 Jul 2019, at 00:19, Peter Feerick <peter....@gmail.com> wrote:

I just ran a quick search against the v1.8.9 and v1.6.12 examples... and not a single .pde file. There were a couple of examples in 1.5.8 in the Wire lib, but that was all. So unless I've missed something, no PR is needed as it's already been done. Those people who are saying that .pde is still the official file extension should be whacked around the head with the note on the arduino.cc website ... .pde was depreciated in v1.0! :-P


NB: Versions of the Arduino Software (IDE) prior to 1.0 saved sketches with the extension .pde. It is possible to open these files with version 1.0, you will be prompted to save the sketch with the .ino extension on save.

 
Peter Feerick
BIT, BLDes, LLB CQU


On Wed, 24 Jul 2019 at 00:37, Juraj Andrássy <juraj....@gmail.com> wrote:

Sorry, but, where in current Arduino IDE or official libraries do you see pde files?

On Tuesday, July 23, 2019 at 11:21:25 AM UTC+2, Dre West wrote:
I've found more and more people are starting to get confused about .pde and .ino when trying to teach them a bit of processing and arduino.

there are even some people on github who argue for the exsistance of .pde in arduino-based tooling; simply because "arduino has it, it works, without pde will break compatability" 

As it stands, i can't use processing and arduino in vscode (using arduino extensions) because people on that argue that arduino uses pde, so, so should the Arduino extension.

Could I submit and get accepted a PR to rename the example code files from PDE into INO, so that it gets the message across that INO is the arduino filetype, "straight from the horses mouth"  ?

I don't see any possible breaking changes; the arduino can still open pde, just the examples "by default" are already in the ino filetype..

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devel...@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devel...@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devel...@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devel...@arduino.cc.

Adrian Godwin

unread,
Jul 25, 2019, 4:01:38 AM7/25/19
to devel...@arduino.cc
To be honest, I only found the teensy examples by searching my file tree for .pde. As far as I can tell, they never appear as that in the IDE or anywhere else used by typical users - they're just tabs in an example. If you modify one and save it out to the sketchbook, it gets saved as .ino. So although Dre's rename is fine, Paul is perfectly correct too.


To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
To view this discussion on the web visit https://groups.google.com/a/arduino.cc/d/msgid/developers/32d5c49c-2ab9-4260-889a-de5a44cf04ea%40arduino.cc.

Dre West

unread,
Jul 25, 2019, 5:13:41 PM7/25/19
to Developers
Yes, I realised my topic was based off an erroneous belief that it was the Arduino examples; but it turns out that it was just some common libraries I use. 

Just to clear the record,  "ain't broke don't fix it" doesn't work in software; " #typedef short long long " ain't broke but you should definitely fix it. 

But there's plenty of awful libraries out there anyway, by people who sound like they either work for a university or got kicked out "for being too smart for them" 

It might be a good time to remove ( or config disallow default off ) pde sketches to be used by Arduino so there's less confusion and it can work alongside Processing a bit better.

Hell, any sort of coding standards would be great to add, it'll be immediately more beneficial for developers and youngs alike.


On Thursday, 25 July 2019 18:01:38 UTC+10, Adrian Godwin wrote:
To be honest, I only found the teensy examples by searching my file tree for .pde. As far as I can tell, they never appear as that in the IDE or anywhere else used by typical users - they're just tabs in an example. If you modify one and save it out to the sketchbook, it gets saved as .ino. So although Dre's rename is fine, Paul is perfectly correct too.


Adrian Godwin

unread,
Jul 25, 2019, 5:41:55 PM7/25/19
to devel...@arduino.cc
I'm sure there must be things that are causing problems that deserve to be fixed before things that aren't.


To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
To view this discussion on the web visit https://groups.google.com/a/arduino.cc/d/msgid/developers/0dc1bd95-10b7-4cdc-8a80-9e491db6076d%40arduino.cc.

Adrian Godwin

unread,
Jul 25, 2019, 5:51:53 PM7/25/19
to devel...@arduino.cc
Since I've been mildly negative about a couple of suggested changes recently I though I'd mention that I don't resist _all_ changes:)

Personally I'd like to see :

for the new user - less confusing reporting of compilation errors - even if it's only showing the first error in the output window instead of the last.

for the heavy user - better control of the channels in the extremely useful plotter window

I don't have much idea of how to do more than a trivial change to the first problem but might eventually get around to fixing and posting some changes for the second.


Holger Lembke

unread,
Jul 26, 2019, 11:22:31 AM7/26/19
to devel...@arduino.cc
>>  for the new user - less confusing reporting of compilation errors - even if it's only showing the first error in the output window instead of the last.

additional features *really urgend* needed for new users:
  -- show source of include file
  -- menu item for pasting board settings as comment into sketch
  -- make "portable" a question at first startup (big dialog, "Want to create a totally portable version" etcetcetc. YES NO)
        (I **LOVE* the "portable" folder feature. It makes it way more easy for trainers to distribute something the noobs can take home...)

additional for trainers:
  -- resize font of tab name with font of editor (currently not videa projector friendly)
  -- some methode of OTA so all users don't see all other users devices... 
      (what I always said.. it is, mildly said, annoying in a room with 12 devs to see 12 devices popping on and off....)

I  gave up hope on proper syntax highlighting and autocomplete and I'm in good cheer for a 10 year anniversary of 1.9.0-beta.




Reply all
Reply to author
Forward
0 new messages