Skip to content

Opening example with .pde file extension fails silently #518

Closed
@lmtanco

Description

@lmtanco

Describe the problem

If the example for a library has .pde file extension, Arduino IDE will silently fail to open it.

To reproduce

  1. Use Library Manager to install version "1.1" of the "TimerOne" library from Library Manager
  2. Select Examples > TimerOne > Interrupt

🐛 The example doesn't open. There is no communication of a problem.

Expected behavior

Arduino IDE opens all valid example sketches, regardless of whether they use a deprecated file extension.

Arduino IDE version

2.0.0-beta.11

Operating system

  • macOS
  • Windows

Operating system version

  • Windows 10
  • macOS (not stated)

Additional context

On the Arduino forum, user in0 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.

Additional Reports

Workaround

Rename the example sketch to use the .ino file extension.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions