Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add summary of errors to compiler output #28196
Hello! I'm a big fan of TypeScript and I found an issue, #14211, that I thought I could help out with. Other compilers I've worked with, in Swift/ObjC and Scala, usually output a compilation summary to go along with the errors; this PR adds that summary to the TypeScript compiler output:
I looked into adding duration of the compiler run to the output, as suggested in the issue, but it doesn't look like the duration is collected without diagnostics enabled.
Some concerns were brought up in that issue around changing the compiler output, but it was confirmed that popular tools that read the logs do so using Regex, so adding something like this shouldn't break anything. I should note that this will print the summaries whether or not in
Beyond the baseline snapshots, I looked for unit tests specific to the code I changed but couldn't find any. Let me know if I missed something.
Very open to feedback – thanks again for all your hard work on TypeScript!
referenced this pull request
Oct 28, 2018
I'm hoping this PR doesn't get stalled, and so I don't mean to be annoying but I'm curious what it would take to get this approved? I'm happy to discuss implementations, etc, just let me know!
I know this feature might seem controversial at first glance, but it would make a big difference for day-to-day developer experiences and as discussed in #14211, it's an additive change that shouldn't impact other existing projects.