Skip to content

Error with a suggestion of '.' for empty project reference paths - #4653

Open
Klyne Chrysler (KlyneChrysler) wants to merge 1 commit into
microsoft:mainfrom
KlyneChrysler:fix/4484-empty-reference-path
Open

Error with a suggestion of '.' for empty project reference paths#4653
Klyne Chrysler (KlyneChrysler) wants to merge 1 commit into
microsoft:mainfrom
KlyneChrysler:fix/4484-empty-reference-path

Conversation

@KlyneChrysler

Copy link
Copy Markdown
Contributor

Fixes #4484

An empty "path" in a project reference now reports a dedicated diagnostic, TS18052: A project reference path cannot be an empty string. Did you mean '.'? Previously it reported the generic TS18051 empty string message, added incidentally by #4494 for the non string panic in #4269, without the suggestion discussed in #4484.

Code 18052 is unused in this repo, in the pinned Strada submodule, and across testdata. The message lives in extraDiagnosticMessages.json since it intentionally diverges from Strada, and the new tsconfigParsing test case is marked noSubmoduleBaseline for the same reason.

Verified with go test on internal/tsoptions (209 passed) and the TestBuildConfigFileErrors tsbuild suite (6 passed), go vet clean, go build clean, hereby format clean. The only change to the existing tsbuild baseline is the empty path line switching from TS18051 to TS18052.

Disclosure per the contributing guidelines: this PR was authored with AI assistance, and I reviewed and verified the changes.

An empty reference path previously reported the generic TS18051 empty
string message. Use a dedicated diagnostic that suggests '.' as
discussed in microsoft#4484.

Fixes microsoft#4484
Copilot AI review requested due to automatic review settings July 16, 2026 06:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@RyanCavanaugh Ryan Cavanaugh (RyanCavanaugh) added the Unmigrated PR This PR was open at the time of the repo move back to TypeScript label Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Unmigrated PR This PR was open at the time of the repo move back to TypeScript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

project reference { "path": "" } is ignored

3 participants