I just upgraded from version 1.8.12 to 2.0.0. I then installed AccelStepper. However, I cannot open any of the examples with the new version (2.0.0). The examples do open if I utilize the older version (1.8.12).
Hi @meakerb . This bug is tracked by the Arduino IDE developers here:
opened 09:58AM - 28 Sep 21 UTC
topic: code
type: imperfection
Hi there,
If the example for a library has .pde extension, Arduino IDE 2.0 be… ta will silently fail to open it.
To reproduce the issue:
- Install Arduino IDE 2.0 beta
- Search and Install TimerOne library from Arduino IDE 2.0 beta Library Manager
- Open Examples>Examples from Custom Libraries>TimerOne>Interrupt
Manually renaming the example file Interrupt.pde to Interrupt.ino solves the issue.
Tried this on MacOS. Version: 2.0.0-beta.11 Date: 2021-08-25T08:44:35.277Z (4 weeks ago) CLI Version: 0.18.3 alpha [d710b642]
On the [Arduino forum](https://forum.arduino.cc/t/arduino-ide-2-0-beta-silently-fails-if-library-example-has-pde-extension/909565), user [in0](https://forum.arduino.cc/u/in0/summary) has reproduced the error on Windows and provides additional info:
> I can reproduce it. You can see the problem when run from the command line:
```
root ERROR Request cloneExample failed with error: ENOENT: no such file or directory, rename 'c:\Users\<user name>\AppData\Local\Temp\.arduinoIDE-unsaved2021827-16716-11heo0w.vdua\Interrupt\Interrupt.pde' -> 'c:\Users\<user name>\AppData\Local\Temp\.arduinoIDE-unsaved2021827-16716-11heo0w.vdua\Interrupt\Interrupt.ino'
```
> It's trying to rename the sketch in the temporary folder rather than in its true path under the library installation.
> I don't have this problem with a standalone sketch using the .pde file extension.
BTW I'm loving the new IDE. Many thanks for the good work! :)
Luis.
The workaround is to use File > Open to open the example sketch instead of opening it via the File > Examples menu.