microsoft / microsoft/TypeScript
Composite (-b) projects don't report duplicate compilations
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
TypeScript Version: 4.0.0-dev.20200615
Search Terms: type narrowing composite build project references duplicate compilations
Code
Expected behavior:
As determined in #38406, the above projects are misconfigured so that Wat.tsx is included twice in compilation (https://github.com/microsoft/TypeScript/issues/38406#issuecomment-625546420). There should be some indication that the projects are misconfigured.
Actual behavior:
Mysterious, difficult-to-debug inconsistencies in type narrowing during compile checking coupled with unusually slow builds.
Repository Link:
https://github.com/JoshuaKGoldberg/ts-repro-project-narrowing/tree/5b71a26b336e6b5267d919832e076923dbb38296
Related Issues: #38406
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンク先の repro の tsconfig.base.json、tsconfig.json、src/a/tsconfig.json、src/a/Wat.tsx から始め、重複コンパイルの挙動を #38406 の議論と比較してください。繰り返しのソース包含を処理する composite プロジェクト参照のコンパイルと診断のエントリポイントを追跡してください。誤った設定によって、重複コンパイルが黙って行われたり narrowing が一貫しなかったりするのではなく、明確な指示が生成されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- build-system, compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100