Greetings - My project was abruptly side tracked after I carelessly clicked "update all" on the popup window upon opening Arduino IDE. Specifically with my Audio.h library and it's dependencies for the ESP32. No amount of reinstalling said libraries fixed this - no amount of deleted the folders and installing manually fixed it. ONLY deleting the entire library folder and utilizing an entire library folder backup from another PC fixed this.
From now on I will practice utmost care in updating any libraries - "if it isn't broken, do not fix it", yes?
Hoping this helps - thank you. Please share what you think and if this sounds normal. I was ready to loose my mind and haven't had this extreme a corruption before.
Welcome to the forum
Which version of the IDE are you using ?
I'm so sorry, I posted in v1, new to this forum.
2.3.4, apologies.
Your topic has been moved to the IDE 2.x category of the forum
Additionally, I am not able to find any type of "disable update" in Preferences.
There is old information online stating this as an option but the latest v2.3.4 doesn't offer this. Thank you a million.
Please provide a detailed description of what you mean by "corruption".
In software development as a whole (not at all specific to Arduino), it is common that updating a dependency to a version with breaking changes will impact a project. This is why you should always carefully review the changelog for a new release of a dependency before updating. If you just cursorily update your dependencies, then it should be no surprise that your projects stop working. But this can not be accurately described as "corruption".
- 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.checkForUpdatesin 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.
Thank you for the detailed reply on how to access the full Preferences options as many online sources fail to include the part of selecting "Preferences UI" - this is very helpful.
To clarify my usage of the word "corruption":
- using an audio project with the ESP32 and a DAC module. Compiling worked prior to "update all". Once I updated the libraries (without taking careful consideration, my big mistake) I received the no name errors concerning Audio.audio;.
- fully deleting and reverting to previous library folder solved this problem, while reinstalling Audio.h and dependencies did not.
I hope this help clarify. Corrupt meaning no solutions solved my problem other than a complete deletion of my library folder.
I should note that my library folder is stored in a personal folder along with the sketches.
While I noticed that a fresh installation of Arduino IDE has this library folder in a programs/app location, not along with the sketches. Could this be my problem? Is it best to keep the library folder in this default/new installation location? Thank you very much.
This would indicate that this was the case of a breaking change or bug in the new version of the dependency impacting your project, rather than a case of a problem during the library installation resulting in a corrupted installation.
However, we would need more information in order to conclusively determine the cause of the problem you encountered:
- your sketch code
- the specific versions of all library dependencies of the sketch that are in place when the project is in the working state
If you are interested in pursuing this further, I can provide instructions you can follow to gather that information. But if you are satisfied with your current working project state and don't want to spend time to learn about the cause of the previous breakage then that is understandable and completely fine with me.
I very much doubt it. As I said above, it is much more likely that the new version of one of the project's dependencies simply has a breaking change/bug.
You are free to configure any sketchbook location you like. Using a custom location should not cause any problems.
There are a couple of exceptions to this:
- If you configure a location that is on a network drive (e.g., Microsoft OneDrive), then you might encounter problems if your computer is not connected to the network or drive.
- There is a bug in Arduino IDE that causes problems if the path contains non-ASCII characters (e.g.,
c:\Tài liệu\Arduino)
However, neither of those problems would cause the symptoms you are describing, so I am confident they are not the cause.
Thank you, you have been most helpful and I'm happy to have focused on the cause.
Yes, I could go further to show the sketch and figure out the dependencies, likely related to the ESP32 I'm assuming.
