Skip to content

Clarify "No errors found." message #808

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

Merged
merged 1 commit into from
Apr 3, 2025
Merged

Conversation

cben
Copy link
Contributor

@cben cben commented Apr 16, 2023

A really minor usability tweak, subjective, up to you if you like it.

In the context of webpack-dev-server, there are 2 async build processes, which may report success/failure:

  • webpack bundle:
    • webpack 5.72.0 compiled with 2 errors in 5492 ms,
    • webpack 5.72.0 compiled successfully in 55345 ms are self-explaining.

There is sometimes a cyan "Type-checking in progress..." between them, but not always.

  • TypeScript checking, which may arrive later:
    • when typescript fails, it starts with non-specific red "ERROR in ./src/..." but next line start with TS error code e.g. TS6133: , so clear enough.
    • when typescript succeeds, the green "No errors found." message may arrive later, and doesn't explain it's specifically what kind of errors. 👈

This PR tweaks the last case to say "No typescript errors found." for clarity.

Screenshot from 2023-10-29 15-42-45

@piotr-oles
Copy link
Collaborator

Maybe it would make more sense to just say "No typescript errors found."?

@cben cben changed the title Prepend "TS: " to "No errors found." message Clarify "No errors found." message Oct 29, 2023
@cben
Copy link
Contributor Author

cben commented Oct 29, 2023

Maybe it would make more sense to just say "No typescript errors found."?

Done, PTAL.

UPDATE: now also updated waitForNoErrors test helper. needs approval to re-run CI?

@cben cben force-pushed the patch-1 branch 2 times, most recently from 1579b3d to d53e1f9 Compare October 30, 2023 21:56
When this message appears in context of webpack-dev-server,
it could be unclear what kind of errors (webpack build vs. typescript).
Sometimes there is a prior "Error checking in progress" message,
but not always, and may be far above the "No errors found."
@piotr-oles piotr-oles enabled auto-merge (squash) April 3, 2025 16:08
@piotr-oles piotr-oles disabled auto-merge April 3, 2025 16:08
@piotr-oles piotr-oles merged commit 9f70a3d into TypeStrong:main Apr 3, 2025
8 checks passed
Copy link

github-actions bot commented Apr 3, 2025

🎉 This PR is included in version 9.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants