-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Log which project is being checked. #60942
Comments
|
You’re right. This output is pretty good. I was confusing it with something even more verbose. Still though, I believe this information is very useful to have by default. Type errors lose a lot of meaning if you don’t know the program context. An alternative would be to only log it if there are type errors, but I think it’s useful to always have this info. |
🔍 Search Terms
log which program is being checked
✅ Viability Checklist
⭐ Suggestion
Log the project that is being checked. Also log something if all checks pass. E.g.:
📃 Motivating Example
The
tsc
command now has useful logging in case of success by default.💻 Use Cases
Currently
tsc
doesn’t log anything about the project it’s checking. In case of success, it logs nothing. If a command run takes longer and emits nothing, I usually get suspicious something went wrong.A more serious use case are project references. TypeScript checks referenced projects one by one. A program may fail type checking. If it does, TypeScript will log which files failed type checking. However, it is ambiguous of which program this file was a part. It may be part of multiple programs. It may succeed type checking for one program, but fail in another. I.e. maybe one program should have excluded it. Or maybe it should have added a missing
lib
, but which program?All of this can be debugged using
--traceResolution
, but that info is very verbose and it takes a clean and second runThe text was updated successfully, but these errors were encountered: