Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print Cargo logs with SpinnerBar::println #1337

Merged
merged 2 commits into from
Jun 6, 2024
Merged

Print Cargo logs with SpinnerBar::println #1337

merged 2 commits into from
Jun 6, 2024

Conversation

maciektr
Copy link
Contributor

@maciektr maciektr commented Jun 4, 2024

fix #1336

@maciektr maciektr requested a review from mkaput June 4, 2024 11:17
@maciektr maciektr marked this pull request as draft June 4, 2024 11:19
@maciektr maciektr marked this pull request as ready for review June 4, 2024 11:19
Copy link
Member

@mkaput mkaput left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be, like, more intelligent?

If there is an active spinner handle:

  1. Do not allow creating other spinners
  2. Redirect all Ui::print & co. calls to this spinner's println

utils/scarb-ui/src/lib.rs Outdated Show resolved Hide resolved
utils/scarb-ui/src/message.rs Outdated Show resolved Hide resolved
scarb/tests/build_cairo_plugin.rs Outdated Show resolved Hide resolved
utils/scarb-ui/src/components/spinner.rs Outdated Show resolved Hide resolved
utils/scarb-ui/src/widget.rs Outdated Show resolved Hide resolved
utils/scarb-ui/src/lib.rs Outdated Show resolved Hide resolved
utils/scarb-ui/src/lib.rs Outdated Show resolved Hide resolved
utils/scarb-ui/src/lib.rs Outdated Show resolved Hide resolved
utils/scarb-ui/src/lib.rs Outdated Show resolved Hide resolved
@maciektr maciektr added this pull request to the merge queue Jun 6, 2024
Merged via the queue into main with commit cc470de Jun 6, 2024
22 checks passed
@maciektr maciektr deleted the maciektr/spinner branch June 6, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Output of cargo build for macros is going wild together with the command indicator
2 participants