Skip to content

Don't error on --incremental, just run normally #908

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
May 22, 2025

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented May 22, 2025

This turns off the early exit and error for --incremental; I think it's fine to just let compilation proceed in this case.

Fixes #906

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the early exit and error for the "--incremental" flag, allowing the compilation to proceed normally.

  • Test baseline updated to expect a successful exit status (0) instead of an error (7)
  • Removed checks for incremental compilation in tsc.go to bypass the not-implemented status
  • Removed the redundant ExitStatusNotImplementedIncremental constant from system.go

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js Updated expected exit status to reflect normal compilation behavior.
internal/execute/tsc.go Removed incremental compilation branches to allow normal compilation flow.
internal/execute/system.go Removed the unused incremental compilation exit status constant.

@jakebailey jakebailey enabled auto-merge May 22, 2025 17:41
@jakebailey jakebailey added this pull request to the merge queue May 22, 2025
Merged via the queue into main with commit f6f7e66 May 22, 2025
23 checks passed
@jakebailey jakebailey deleted the jabaile/incremental-for-now branch May 22, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails silently when compilerOptions.incremental = true
2 participants