PDE sketches vs INO sketches

In using some older libraries, I noticed that I am unable to compile example sketches with .pde extensions. For example, in the "ADAFRUIT MOTOR SHIELD" library, the motorTest.pde sketch gives the following error:

"Unable to find /tmp/737322548/MotorTest/MotorTest.ino in /tmp/737322548/MotorTest"

I thought I saw a question about this somewhere in the forums, but I couldn't find it again. Besides copying a pasting the code into a new file, is there a simple solution for this?

Thanks!

I can confirm what you see.

However by simply clicking on the save (on arduino cloud) it creates a copy of the sketch which will then start to compile. It fails with a different error due to a library issue though.

/tmp/147778268/AFMotor_ConstantSpeed_copy/AFMotor_ConstantSpeed_copy.ino:10:26: fatal error: AccelStepper.h: No such file or directory
#include <AccelStepper.h>
^
compilation terminated.
exit status 1

NOTE that the simple save changed it to an INO file.
Problem seems to be with the "AccelStepper.h" file as other examples compile fine from both V1 and V2 of that lib.

Hi @MisterBianchi,
I opened an issue on the Adafruit repo to see if they can update the examples format from .pde to .ino.

In the meantime if you hit save a copy of the example is created in your sketchbook and it compiles correctly.

@Ballscrewbob that output is from the Desktop IDE, right? You need to install that other library to make it work. Since all the libraries are automatically available on the Web IDE everything works out of the box.

Thanks!

@ 00alis

Sorry the output was from the regular CREATE I should have said.

@Ballscrewbob oh that is strange! It compiles fine on my identity on the web but I get that error on the desktop IDE... Could you tell us a bit more about your setup?

Some of the examples work in that lib but not all.