Closed per1234 closed 8 months ago
This is broken in IDE 2.3.2.
For example, try opening the:
File/Examples/AccelStepper/Bounce example that refers to this file on my Mac:
/Users/drf/Documents/Arduino/libraries/AccelStepper/examples/Bounce/Bounce.pde
Using the workaround for a differential test, rename your Random.pde to Random.ino within its library directory and the Arduino IDE will open it as usual.
For example:
/Users/drf/Documents/Arduino/libraries/AccelStepper/examples/Random/Random.ino
...functions as expected.
Tested on MacOS Sonoma 14.2.1 on Apple Silicon M2
No screen shot of the silent failure.
I find these other .pde files in my libraries:
libraries % find . -name "*.pde" -print
./TinyWireM/examples/Tiny85_Temp_LCD_RTC/Tiny85_Temp_LCD_RTC.pde
./TinyWireM/examples/Tiny85_Temp_LCD/Tiny85_Temp_LCD.pde
./TinyWireM/examples/Tiny85_Temp/Tiny85_Temp.pde
./Adafruit_BMP085_Unified/examples/sensorapi/sensorapi.pde
./AccelStepper/examples/MultipleSteppers/MultipleSteppers.pde
./AccelStepper/examples/AFMotor_MultiStepper/AFMotor_MultiStepper.pde
./AccelStepper/examples/ConstantSpeed/ConstantSpeed.pde
./AccelStepper/examples/Blocking/Blocking.pde
./AccelStepper/examples/ProportionalControl/ProportionalControl.pde
./AccelStepper/examples/AFMotor_ConstantSpeed/AFMotor_ConstantSpeed.pde
./AccelStepper/examples/MotorShield/MotorShield.pde
./AccelStepper/examples/DualMotorShield/DualMotorShield.pde
./AccelStepper/examples/Quickstop/Quickstop.pde
./AccelStepper/examples/MultiStepper/MultiStepper.pde
./AccelStepper/examples/Overshoot/Overshoot.pde
./AccelStepper/examples/Bounce/Bounce.pde
./AFMotorDrawbot/examples/MotorParty/MotorParty.pde
./AFMotorDrawbot/examples/MotorTest/MotorTest.pde
./AFMotorDrawbot/examples/AFMotor_MultiStepper/AFMotor_MultiStepper.pde
./AFMotorDrawbot/examples/AFMotor_ConstantSpeed/AFMotor_ConstantSpeed.pde
./AFMotorDrawbot/examples/StepperTest/StepperTest.pde
./FreqMeasure/examples/Serial_Output/Serial_Output.pde
./FreqMeasure/examples/LCD_Output/LCD_Output.pde
./LiquidCrystal_I2C/examples/HelloWorld/HelloWorld.pde
./LiquidCrystal_I2C/examples/CustomChars/CustomChars.pde
./LiquidCrystal_I2C/examples/SerialDisplay/SerialDisplay.pde
./FrequencyTimer2/examples/Test/Test.pde
./Adafruit_LED_Backpack_Library/examples/custom_character/customgen/customgen.pde
./NXPMotionSense/OrientationVisualiser/OrientationVisualiser.pde
./FreqCount/examples/Serial_Output/Serial_Output.pde
./FreqCount/examples/LCD_Output/LCD_Output.pde
testing a few of these, I find they fail as well.
This is broken in IDE 2.3.2.
@drf5n that is expected. The fix was made after the time of the 2.3.2 release. Please always check with the latest nightly build of Arduino IDE before reporting problems:
Describe the problem
If the example for a library has
.pde
file extension, Arduino IDE will silently fail to open it.To reproduce
🐛 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.3.2
Operating system
Windows
Operating system version
11
Additional context
I see the following in the logs when I try to open the example:
I bisected the regression to 074f65445728cb1950bfe1a01017c8227e43aba6 (does not occur with the build for the previous commit 3eef857b4843d33ca96d36f6e8cc2228f8e386ec)
This is a regression of https://github.com/arduino/arduino-ide/issues/518
Originally reported by @drf5n at:
https://forum.arduino.cc/t/accelstepper-library-examples-dont-open-with-arduino-ide-2-3-1/1226308/2
Workaround
libraries
subfolder of the path you saw in the "Sketchbook location" field during step (2) of these instructions.examples
subfolder..pde
file in the folder.The example sketch will now open in an Arduino IDE window as usual.
Issue checklist