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

Newly added files not registered as belonging to composite projects #38976

Closed
mntnoe opened this issue Jun 8, 2020 · 1 comment
Closed

Newly added files not registered as belonging to composite projects #38976

mntnoe opened this issue Jun 8, 2020 · 1 comment
Assignees
Labels
Fix Available A PR has been opened for this issue

Comments

@mntnoe
Copy link

mntnoe commented Jun 8, 2020

TypeScript Version: 3.8-rc to 4.0.0-dev.20200608

Search Terms:
composite, watch directories

Code

git clone https://github.com/mntnoe/ts-build-repro/
cd ts-build-repro
node build-watch

The node script will invoke the TS solution builder API to watch the src project, then add and import a file to it.

Also check out the scenario using a watch program (program-watch.js), as the error is displayed briefly in this case.

Expected behavior:
Project recompiles successfully.

Actual behavior:
Project fails with src/main.ts(2,8): error TS6307: File '.../ts-build-repro/src/bar.ts' is not listed within the file list of project '.../ts-build-repro/src/tsconfig.json'. Projects must list all files or use an 'include' pattern.

Related Issues:

I believe the issue was introduced by #35615, as the issue started with TS 3.8. Adding watchDirectories: false works around the problem.

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Jun 12, 2020
@RyanCavanaugh RyanCavanaugh added this to the Typescript 4.0.1 milestone Jun 12, 2020
@sheetalkamat
Copy link
Member

Fixed by #39030

@sheetalkamat sheetalkamat added Fix Available A PR has been opened for this issue and removed Needs Investigation This issue needs a team member to investigate its status. labels Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Available A PR has been opened for this issue
Projects
None yet
Development

No branches or pull requests

3 participants