Skip to content
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

Emit build info even on noEmitOnError or tsc --build #38853

Merged
merged 3 commits into from
Jun 2, 2020

Conversation

sheetalkamat
Copy link
Member

@sheetalkamat sheetalkamat commented May 29, 2020

With this change the caching of semantic diagnostics in the builder is written to the disk with .tsbuildinfo so next incremental build should benefit from that.

  • Emits .tsbuildinfo even if program has error (changes tsc --watch and tsc --incremental emit) 62584b7
  • Emit .tsbuildinfo in --build mode (with and without watch) even if there are errors. bafc3b7

) {
const canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !outFile(program.getCompilerOptions());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do syntax errors block a build info?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because there is nothing to write in this case. Only semantic errors are cached so there is no use writing tsbuildinfo in this case

Base automatically changed from testChanges to master June 2, 2020 18:49
@sheetalkamat sheetalkamat merged commit 9fbcb99 into master Jun 2, 2020
@sheetalkamat sheetalkamat deleted the noEmitOnError branch June 2, 2020 19:38
cangSDARM added a commit to cangSDARM/TypeScript that referenced this pull request Jun 5, 2020
* upstream/master: (48 commits)
  Fix merging of JS value & TS type decl
  LEGO: check in for master to temporary branch.
  `getSymbolDisplayPartsDocumentationAndSymbolKind`: use actual `symbol.flags` for `getAliasedSymbol`
  LEGO: check in for master to temporary branch.
  LEGO: check in for master to temporary branch.
  Fix two tests
  Update user baselines
  LEGO: check in for master to temporary branch.
  address PR comments
  Emit build info even on noEmitOnError or tsc --build (microsoft#38853)
  Some changes to tsc baselines for clarity (microsoft#38850)
  LEGO: check in for master to temporary branch.
  fix merge conflicts
  polish tests
  remove outdated tests
  convert import trigger reason test
  convert import trigger reason only
  convert export trigger reason test
  convert export cursor only changes
  remove declaration
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants