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

Handle output file names descripency between tsc --b and actual program emit file path calculation #41811

Merged
merged 7 commits into from Dec 7, 2020

Conversation

sheetalkamat
Copy link
Member

  1. Ensures that if there is error that all files dont belong to 'rootDir' even then 'rootDir' is used as common source directory
  2. Calculation of commonSourceDirectory is done for tsc -b that uses getOutputFileNames api
    Fixes tsc --build takes wrong assumption on project rootDir #41801 and getOutputFileNames is returning incorrect path #41780

@sheetalkamat sheetalkamat merged commit bfb2591 into master Dec 7, 2020
@sheetalkamat sheetalkamat deleted the outputFileNames branch December 7, 2020 19:53
@benmccann
Copy link
Contributor

Thank you so much for the fix!! Any idea whether it might be in 4.1.3 or not until 4.2.0?

@sheetalkamat
Copy link
Member Author

We would probably want to wait for 4.2 as it is not minor fix and not patch it to 4.1

scalder27 pushed a commit to scalder27/TypeScript that referenced this pull request Dec 7, 2020
…am emit file path calculation (microsoft#41811)

* Baseline showing microsoft#41801 and other issues with output path calculation

* Add a way to note descripencies between clean and incremental build

* Add descripency when no rootDir is specified but project is composite

* if rootDir is specified, irrespective of whether all files belong to rootDir, the paths should be calculated from rootDir

* Fix the output file names api to use the correct common source directory

* Tests for microsoft#41780

* Spelling
@shellscape
Copy link

@sheetalkamat I don't see this in the 4.2.0 or 4.2.1 list of issues for those milestones. Can you confirm it made it into either release?

@benmccann
Copy link
Contributor

Yes, I believe this is working in TypeScript 4.2 now. It appears there was a new issue introduced directly in rollup/plugins and TypeScript is no longer the root cause of the failure. See rollup/plugins#818 (comment) for more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tsc --build takes wrong assumption on project rootDir getOutputFileNames is returning incorrect path
5 participants