New file Extension in Arduino IDE 2.2.1

Hi Folks,

After long break, I came back in Arduino world.
previously I was used Arduino IDE 2.0.1. and now I am installing new Arduino IDE 2.2.1. and the confusing part on this IDE is *.pde extension. it is new for me so my old sketches shows same extension and having compiling error.
can anyone guide me why it happen and how I'll compiled and uploaded my old extensions either on *.ino or in *.pde successfully.

I moved your topic to an appropriate forum category @sabidali.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @sabidali.

I'm going to ask you to post the full output from a compilation in order to allow us to better understand the problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Open one of the affected sketches in Arduino IDE.
  2. Select Sketch > Verify/Compile from the Arduino IDE menus.
  3. Wait for the compilation to fail.
  4. You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  5. Open a forum reply here by clicking the "Reply" button.
  6. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  7. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  8. Move the cursor outside of the code block markup before you add any additional text to your reply.
  9. Click the "Reply" button to post the output.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the "Reply" button.
  5. Click the "Upload" icon (image) on the post composer toolbar:
    Upload icon on toolbar
    The "Open" dialog will open.
  6. Select the .txt file you saved from the "Open" dialog.
  7. Click the "Open" button.
    The dialog will close.
  8. Click the "Reply" button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.

Linux user? If so, you probably installed the IDE using the package manager in which case that version is not the official Arduino IDE 2.0.1 but a version of some antique IDE.

Reasonably sure that the error relates to WProgram.h which no longer exists; it was replaced by Arduino.h.

PS
I think that the PDE extension hasn't been used by the IDE since I started with Arduino 7 or 8 years ago

Windows 11 User (Now)
Windows 10 (in Past)

Please provide the information that was asked for in post #3.

right now, it can't give compilation error but still not able to change this file extension and either can't be able to open *.ino file directly.

I tried to "save as..." with test.ino extension but at the end it makes another copy of test.pde

Regarding post #7 (right bottom), you are loading an old version of a program; there is nothing to worry about that. If you click yes, it will probably just do the conversion for you.

You however have another problem and that is the popup in the center. Where does that 128x64_OLED_with_Weather.ino come from?

Note that, when you double click an ino file in e.g. windows explorer, the IDE expects that file to be in a directory with the same name (without the extension). If that file is in a directory, first thing would be to check if there is an ino file in that directory that has the same name as the directory; that's the one that you need to open.

regarding post # 7, i did press yes, and in Save as windows i try to write "HelloWorld.ino" including double quote and select all files but it saved as HelloWorld.pde in new folder with the name of HelloWorld_copy_20240206221004.
128x64_OLED_with_Weather.ino is inside [ 128x64_OLED_with_Weather ] folder but it behave like that shown in post # 7

OK, I've confirmed the behaviour. Looking at Primary sketch filename not updated on sketch rename when it has a `.pde` extension · Issue #1111 · arduino/arduino-ide · GitHub, it's a known bug.

It's annoying that you get that popup but it does not affect the functionality. Workaround: manually rename the pde file in Windows Explorer.

I'm not sure what's going on

  1. Do you have spaces in there as you show in [ 128x64_OLED_with_Weather ]?
  2. Are you opening the ino file from within a compressed file (e.g. zip file)? If yes, that will not work. Extract and try again.

Thank you all, specially for Karma, problem is resolved now. Thank you for your help and support.

Actually problem trace by karma and my mistake is that I didn't close old application which supports pde extension. So it's not allowing me to save new app in ino extension.
Sorry for late reply.

The name is sterretje :smiley: Like yours is sabidali :wink:

You can mark the topic as solved by clicking the little checkbox under the most useful post (your post #13)

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