Description
Describe the problem
At the end of an upload operation, Arduino IDE displays a notification to communicate the result to the user.
If the operation was successful, the "Done uploading." notification should be shown:
If the operation failed, the "Upload error: ..." notification should be shown:
🐛 "Done uploading" notification is shown even when the upload failed. The result of the upload will not be clearly communicated to the user, and even if they do notice that the upload failed, they won't have access to the convenient "COPY ERROR MESSAGES" button that is the standard way for support technicians to obtain the upload logs.
To reproduce
- If you have an UNO R4 Minima connected to your computer, disconnect it.
- Select File > New Sketch from the Arduino IDE menus.
- Select Tools > Board > Arduino UNO R4 Boards > Arduino UNO R4 Minima.
ⓘ This board was selected arbitrarily for the demo because it does not use a serial port for uploads, and thus avoids an equipment prerequisite for the demo. However, the bug affects all boards; not only the UNO R4 Minima. - Select Sketch > Upload from the Arduino IDE menus.
- Wait for the upload operation to finish.
🐛 The upload failed, as expected, but the notification for a successful upload was shown.
Expected behavior
The failure notification is shown when an upload fails:
Arduino IDE version
2.3.3
Operating system
Windows
Operating system version
Windows 11
Additional context
I bisected the regression to #2500 / a5bf56f (the fault does not occur when using the build from the previous commit 1ec0a8c).
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details