Description
Run compiler in watch mode: tsc -w. Change some files, causing multiple compilations.
Expected behavior:
As a developer, I expect the output of tsc -w to be relevant and concise to the current runtime. It should show me the information only of the current run, stating that either the compilation was a success or fail with an error message.
Actual behavior:
The output of previous compilations is kept.
Benefit:
During development, seeing old output is redundant, noisy, and it also takes away if there are errors in the output as I am not alarmed to them right away. They could simply have been errors from the last run.
I have to manually enter new lines or check the timestamps. I have to parse the output what error messages relate to which run. I am discovering myself hitting enter multiple times to create distinguishable marks so that I better see the output of the next run. Sometimes I just cancel watch mode and run tsc multiple times manually while debugging an issue.
Another tool that has a similar feature to what I am proposing is mocha with their min reporter.
Activity
RyanCavanaugh commentedon Mar 7, 2017
Accepting PRs - should be straightforward. Add a
clsmethod tosys; we'll take care of implementing it fortsc.exeGongT commentedon Jun 18, 2017
on linux, I m using this for a lone time:
cmd.exe also support "\x1Bc" ( c ), at least on win10.
mhegazy commentedon Dec 2, 2017
Fixed by #20389
iffy commentedon Feb 22, 2018
How can I disable this?
eile commentedon Feb 26, 2018
This is very disruptive for my setup. Please add an option to disable.
k0pernikus commentedon Feb 26, 2018
Matt Haggard (@iffy) Stefan Eilemann (@eile) This issue was for clearing the screen during watch mode. If you want an option to disable that feature, you'll better open a new issue as this one has been closed.
(And xkcd prives right once again: https://imgs.xkcd.com/comics/workflow_2x.png ;) )