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

feat(solc): color when formatting Error and OutputDiagnostics #2368

Merged
merged 5 commits into from Apr 24, 2023

Conversation

DaniPopes
Copy link
Collaborator

@DaniPopes DaniPopes commented Apr 21, 2023

Motivation

Monotone color ugly and bad. More colors good.

Tried as much as possible to use the same format as Solc's formatter.

Before:

image

After (left: solc --error-codes, right: this):

2023-04-21_11-55-32

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Collaborator

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

this is very nice to have!

all of the parser error branches use regular print, so we don't lose any information in case parsing the output failed.

lgtm

@DaniPopes DaniPopes changed the title feat(solc): color OutputDiagnostics feat(solc): color when formatting Error and OutputDiagnostics Apr 21, 2023
@prestwich prestwich merged commit 98640f8 into gakonst:master Apr 24, 2023
12 of 15 checks passed
@DaniPopes DaniPopes deleted the feat/better-solc-diags branch April 24, 2023 19:55
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.

None yet

3 participants