microsoft / microsoft/TypeScript
Composite (-b) projects don't report duplicate compilations
还没有人认领这个 Issue。
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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