In sadly an undrunken stupor I misclicked on the Upgrade button. Now I have 3.0.1 in packages/esp32/hardware/esp32 and things don't compile and I don't really want to regress the whole project. I also love how it wipes out the old 2.0.x directory, just gone, zippo, nada. I have backups of the 2.0.x directory and modifications (partition tables, etc.) but I need to get back to where the IDE will build with the 2.0.x
Hi @fboggle. I'll provide instructions you can follow to do that:
Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Scroll down through the list of boards platforms until you see the "esp32" entry.
Select "2.0.17" from the drop-down menu in the "esp32" entry.
Click the "INSTALL" button at the bottom of the entry.
Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the advanced settings.
I'll provide instructions you can follow to do that:
Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
A menu will appear on the editor toolbar:
Select the "Preferences: Open Settings (UI)" command from the menu. ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Preferences" tab will open in the Arduino IDE main panel.
Type arduino.checkForUpdates in the "Search Settings" field of the "Preferences" tab.
Uncheck the box under the "Arduino: Check For Updates" setting.
Close the Preferences tab by clicking its X icon.
If you disable the automatic update check, make sure to periodically do a manual check for newer versions of Arduino IDE and your installed boards platforms and libraries. You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus. You can check for new versions of boards platforms and libraries by selecting "Updatable" from the "Type" menu in the Boards Manager and Library Manager views.
I'm also happy to see the instructions for disabling the invitation to update boards
(and libraries). It is a persistent nuisance and dangerous because the control to dismiss the window is very close to the control to update all libraries. Since many libraries (and boards) have breaking changes it is often that users do not immediately want the latest version.
I am, incidentally, otherwise very pleased with IDE version 2.x and also with the ability to freely move between 1.x and 2.x for the few tools not fully adapted for 2.x.