Skip to content

[CP] [dartdev] Progress updates for running hooks #61712

@dcharkes

Description

@dcharkes

Commit(s) to merge

Target

beta

Prepared changelist for beta/stable

Issue Description

When running dart run and dart test no feedback is visible in the terminal that something is happening. With long-running hooks this leads to the users wondering if their dart process is hanging.

What is the fix

Print in the console a timer counting up:

Running build hooks... (0.7s)

Why cherry-pick

Dart 3.10 stable makes build hooks generally available.

Risk

Low

The terminal progress update was taken from pubs implementation when it's displaying:

Building package executable... (1.3s)

The implementation in dartdev is fairly simple.

Issue link(s)

cc @goderbauer

Metadata

Metadata

Assignees

No one assigned

    Labels

    cherry-pick-reviewIssue that need cherry pick triage to approve

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions