Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

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
@DaniPopes DaniPopes deleted the feat/better-solc-diags branch April 24, 2023 19:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants