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

createIncrementalProgram is not emitting incrementally #47334

Closed
AaroncoolPx opened this issue Jan 6, 2022 · 2 comments
Closed

createIncrementalProgram is not emitting incrementally #47334

AaroncoolPx opened this issue Jan 6, 2022 · 2 comments
Assignees
Labels
Needs More Info The issue still hasn't been fully clarified
Milestone

Comments

@AaroncoolPx
Copy link

Bug Report

🔎 Search Terms

createIncrementalProgram

🕗 Version

Typescript 4.5.4

💻 Code

import ts = require("typescript");

var options = {
    incremental: true,
    allowJs: true,
    sourceMap: true,
    tsBuildInfoFile: "buildInfoTestOutput",
};
let program = ts.createIncrementalProgram ({
    rootNames: ["./test1.ts"],
    options: options
});
let emitResult = program.emit();

🙁 Actual behavior

createIncrementalProgram is not emitting incrementally. Files are recompiled even though the source files are not changed. It is behaving same as createProgram.

🙂 Expected behavior

Should not recompile when no source files have been changed.

@DanielRosenwasser
Copy link
Member

This is possibly related to #47309, and possible mitigations are discussed in #46677.

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Jan 11, 2022
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Jan 11, 2022
@sheetalkamat
Copy link
Member

I am not sure what issue you are seeing. Can you share exact repro code, (Apart from your code, the source on which you are running this.) i have run this on simple repro and it works as expected.

@sheetalkamat sheetalkamat added Needs More Info The issue still hasn't been fully clarified and removed Needs Investigation This issue needs a team member to investigate its status. labels Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Info The issue still hasn't been fully clarified
Projects
None yet
Development

No branches or pull requests

4 participants