Skip to content

Clear compilation/upload success notifications on subsequent actions #1464

Open
@per1234

Description

@per1234

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.

  1. Create a sketch that will compile successfully:

    void setup() {}
    void loop() {}
  2. Select Sketch > Verify/Compile from the Arduino IDE menus.

  3. Wait for compilation to finish.
    🙂 A notification clearly communicates that the compilation finished:

    ⓘ Done Compiling

  4. Change the sketch so that it will fail to compile:

    #error
    void setup() {}
    void loop() {}
  5. Select Sketch > Verify/Compile from the Arduino IDE menus.

  6. 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.

  7. 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:

  1. Failed compilation or upload
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions