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 compact stats instead of verbose when no errors or warnings #1254

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

fsoikin
Copy link
Collaborator

@fsoikin fsoikin commented Jul 24, 2024

Description of the change

Fixes #1195

When there are no errors or warnings, we're just delegating to renderStats to print all zeroes.

image

Checklist:

  • Added the change to the "Unreleased" section of the changelog
  • [ ] Added some example of the new feature to the README
  • Added a test for the contribution (if applicable)

@fsoikin fsoikin force-pushed the issue-1195-empty-verbose-stats branch from 9075491 to f771e7e Compare July 25, 2024 00:57
Comment on lines -8 to +14
( buildOutput
, Output
( Output
, OutputStats
, annotatedError
, trimPosition
, buildOutput
, initialStats
, trimMessage
, trimPosition
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This got sorted alphabetically by the IDE support. The only real change is exporting initialStats to use it in the test.

Copy link
Member

@f-f f-f left a comment

Choose a reason for hiding this comment

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

Lovely, thank you!

@f-f f-f merged commit 3ac61f5 into purescript:master Jul 25, 2024
5 checks passed
@fsoikin fsoikin deleted the issue-1195-empty-verbose-stats branch July 25, 2024 10:01
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.

verbose-stats showing improper stats
2 participants