I am having trouble with version IDE 3.3.9 and had to downgrade. When I change the name of a variable and compile again the old variable is not lost the compiler still works with the name of the old variable in the source.
Same issue with IDE 2.3.9 I removed Serial.print statements, recompiled and uploaded with no errors and the Serial.print statements were still printing to the terminal screen.
I trade out the processor for a new one - no effect
I loaded a different program if updated and ran, then loaded and the program I was working on and the Serial.print statements were printing again (the not even in the code)
I installed an old version of the IDE 2.1.1 and that compiled and it worked.
I then went looking for IDE version 2.3.8 and could not find a copy of it
I did not start having issues until the 2.3.9 upgrade
Hi @bduist and @wabear. In the Arduino IDE 2.3.9 release, changes were made to the sketch build system to cause it to cache the objects generated by compiling the sketch source code, then reused those cached objects on subsequent compilations in the case where the source had not been changed since the time of the previous compilation, rather than unnecessarily recompiling the source. This change is useful because it reduces the amount of time it takes to compile and upload the sketch.
Unfortunately there is a bug in the new sketch caching system that causes it to fail to recognize changes were made to the sketch under certain conditions:
I apologize for any inconvenience caused by this bug.
The developers have already fixed the bug in the Arduino CLI helper tool that performs the sketch build for Arduino IDE under the hood:
That fix has been released in Arduino CLI version 1.5.1.
The next step is to update the version of Arduino CLI used by Arduino IDE to the version with the bug fix (1.5.1). This is already in progress:
Once that work is completed, we will make a new release of Arduino IDE (2.3.10). The problem you encountered should no longer occur after you update your Arduino IDE installation to the new version.
Until that time, using Arduino IDE 2.3.8 will be the most simple workaround.
You can download Arduino IDE 2.3.8 from the links under the "Assets" section of the release page on the project's official source repository on GitHub:
Please let me know if you have any questions or problems with installing 2.3.8.