Accelstepper library examples don't open with Arduino IDE 2.3.1

Update:

I just tried to call up an example sketch, but it doesn't work. I see the example sketch on Accelstepper, but I can't call it. I then completely uninstalled and reinstalled the IDE and reinstalled accelstepper. I see the example sketches, but cannot access them. All other libraries that I reinstall work, such as Adafruit_VL6180x or PCF8574 library working fine. For all libraries related to AccelStepper, AccelStepper, AccelStepperWithDist. and FastAccelStepper I have the problem

I have a problem pre-sketch: if I go to file/examples/accelstepper/bounce and click it, no sketch opens up.

That is a vague description. Maybe it is the same bug that @DaveX reported:

I see there is a regression of this bug:

Thanks for bringing this to our attention!

I'll take care of reporting this to the Arduino IDE developers.

The workaround is:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Take note of the path shown in the "Sketchbook location" field of the dialog.
  3. Click the "CANCEL" button.
    The "Preferences" dialog will close.
  4. Select File > Open... from the Arduino IDE menus.
  5. Navigate to the libraries subfolder of the path you saw in the "Sketchbook location" field during step (2) of these instructions.
  6. You will see a list of the installation folders of each of the libraries you have installed. Scroll through the list until you find the library for which you want to open an example sketch.
  7. Open the folder of the library and then the examples subfolder.
  8. There you will see a list of the folders of each of the example sketches provided by the library. Open the folder of the example you want to open.
  9. Select the .ino file in the folder.
  10. Click the "Open" button.

The example sketch will now open in an Arduino IDE window as usual.

Surely you mean open the ".pde" file?

There is no .ino, that is the problem.

That is right. Thanks for the correction! I apologize for any confusion my error has caused.

Problem remains in 2.3.2.

The workaround works.

I renamed the AccelStepper Random example but not the Bounce Example:

/Users/drf/Documents/Arduino/libraries/AccelStepper/examples/Random/Random.ino
/Users/drf/Documents/Arduino/libraries/AccelStepper/examples/Bounce/Bounce.pde

...and the File/Examples/AccelStepper/Random does open, while the Bounce does not.

The bug is now tracked here:

If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:

image

2.3.2 will also have problems with the example sketches for other libraries using .pde extensions. On my machine, these:

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

The AccelStepper and LiquidCrystal_I2C look like the most popular examples that folks would try.

I'm happy to report this bug has been fixed:

Since the fix was made after the time of the Arduino IDE 2.3.2 release, it is currently only available when using the latest nightly build of Arduino IDE.

If you like, you can give it a try. The download links for the nightly build are listed here:

https://www.arduino.cc/en/software#nightly-builds


The nightly build and the release version of Arduino IDE can coexist on your computer without any problems so there is no need to uninstall the release version if you aren't sure whether you want to switch to using the potentially less stable nightly build exclusively.