Arduino IDE 2.0 beta silently fails if library example has .pde extension

Hi there,

If the example for a library has .pde extension, Arduino IDE 2.0 beta 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]

Many thanks for the good work!

Luis.

Thanks for reporting this @lmtanco!

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.

I would recommend you to open a formal bug report in the issue tracker for the Arduino IDE 2.x:
https://github.com/arduino/arduino-ide/issues/new?labels=type%3A+imperfection&template=bug_report.md

This will bring the bug to the attention of the IDE developers and allow everyone to efficiently track the progress of the fix.

Great, thanks for testing @in0 !

Thanks also for the link to GitHub. I have opened the issue here: Opening example with `.pde` file extension fails silently · Issue #518 · arduino/arduino-ide · GitHub.

BW,

Luis.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.