Skip to content

Specified diagnostic for CLI flags mismatched with/out --build#43199

Merged
sheetalkamat merged 7 commits into
microsoft:masterfrom
JoshuaKGoldberg:only-used-with-build-flags-diagnostic
Apr 7, 2021
Merged

Specified diagnostic for CLI flags mismatched with/out --build#43199
sheetalkamat merged 7 commits into
microsoft:masterfrom
JoshuaKGoldberg:only-used-with-build-flags-diagnostic

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Contributor

@JoshuaKGoldberg JoshuaKGoldberg commented Mar 11, 2021

Fixes #43196

Goes off the list of flags in https://www.typescriptlang.org/docs/handbook/project-references.html#tsc--b-commandline that require --build. That may change soon if #43193 is resolved.

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Mar 11, 2021
Copy link
Copy Markdown
Member

@sheetalkamat sheetalkamat left a comment

Choose a reason for hiding this comment

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

I think it would be better for parse command line worker to take other options map and diagnostics to check of option is from different list so that build and non build both can report errors on options that are only available in other mode

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as draft March 12, 2021 15:55
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review March 12, 2021 19:15
@JoshuaKGoldberg JoshuaKGoldberg force-pushed the only-used-with-build-flags-diagnostic branch from eafe1d3 to 9b7adf4 Compare March 12, 2021 19:16
Comment thread src/compiler/types.ts
@JoshuaKGoldberg JoshuaKGoldberg changed the title Specified diagnostic for CLI flags missing a required --build Specified diagnostic for CLI flags mismatched with/out --build Mar 29, 2021
Comment thread src/compiler/commandLineParser.ts Outdated
Comment thread src/compiler/types.ts Outdated
Comment thread src/compiler/types.ts Outdated
@sheetalkamat sheetalkamat merged commit fe4a670 into microsoft:master Apr 7, 2021
@JoshuaKGoldberg JoshuaKGoldberg deleted the only-used-with-build-flags-diagnostic branch April 7, 2021 23:19
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Misleading "Unknown compiler option '--clean'" when --build not provided

4 participants