Description
Describe the request
Automatically clear compilation and upload success notifications when a subsequent compilation or upload fails.
🙂 The "Notification Center" will only contain relevant notifications.
Describe the current behavior
The Arduino IDE opens a notification when compilation or upload of a sketch is completed.
This is a valuable feedback mechanism at the completion of the process. However, once a new compilation or upload has been initiated, the notification is no longer relevant.
Currently, the notification of completed compilations or uploads remain in the notification center even after a subsequent operation has failed until the user manually clears them.
-
Create a sketch that will compile successfully:
void setup() {} void loop() {}
-
Select Sketch > Verify/Compile from the Arduino IDE menus.
-
Wait for compilation to finish.
🙂 A notification clearly communicates that the compilation finished:ⓘ Done Compiling
-
Change the sketch so that it will fail to compile:
#error void setup() {} void loop() {}
-
Select Sketch > Verify/Compile from the Arduino IDE menus.
-
Wait for compilation to finish.
🙂 A notification clearly communicates that there was a compilation error:❌ Compilation error: #error
😕 The counter on the bell icon at the right side of the status bar shows there is an additional notification.
-
Open the "Notification Center" by clicking the bell icon.
There are two somewhat contradictory compilation-related notifications in the "Notification Center":
❌ Compilation error: #error
ⓘ Done Compiling
🙁 The leftover notification, which is an indicator of success, might be confusing to the user
🙁 Users who like to keep a clean "Notification Center" will be annoyed by the need to manually clear the obsolete notification.
Arduino IDE version
2.0.0-snapshot-4e590ab
Operating system
Windows
Operating system version
10
Additional context
A previous request #1154 and PR #1275 provided clearance of the outdated notification when the sequence is as follows:
- Failed compilation or upload
- Successful compilation or upload
Originally reported at https://forum.arduino.cc/t/done-compiling-is-this-notification-needed/1030399/9
Related
Issue checklist
- I searched for previous requests in the issue tracker
- I verified the feature was still missing when using the latest nightly build
- My request contains all necessary details