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

fix: make solc reporter respect NO_COLOR #2588

Merged
merged 2 commits into from
Aug 3, 2022
Merged

Conversation

onbjerg
Copy link
Member

@onbjerg onbjerg commented Aug 3, 2022

Rewrites the Solc reporter using yansi so the indicator respects NO_COLOR.

Unfortunately, it does not seem like yansi has the "clear line" etc. escape sequences

@onbjerg onbjerg added the T-bug Type: bug label Aug 3, 2022
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

alternatively, we could add a with_color: bool which gets derived from NO_COLOR and print conditionally colorized or not

but I can't remember what the escape codes mean -.-

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

just tested, lgtm

@gakonst gakonst merged commit 8a5f5aa into master Aug 3, 2022
@gakonst gakonst deleted the onbjerg/solc-reporter-color branch August 3, 2022 16:25
iFrostizz pushed a commit to iFrostizz/foundry that referenced this pull request Nov 9, 2022
* fix: make build progress respect `NO_COLOR`

* refactor: delete dead code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants