Skip to content

Use: improve error message when .swift-version toolchain is missing#540

Merged
cmcgee1024 merged 1 commit into
swiftlang:mainfrom
cmcgee1024:version_mismatch_error
May 15, 2026
Merged

Use: improve error message when .swift-version toolchain is missing#540
cmcgee1024 merged 1 commit into
swiftlang:mainfrom
cmcgee1024:version_mismatch_error

Conversation

@cmcgee1024
Copy link
Copy Markdown
Member

When a swift version file references an uninstalled toolchain, the error
now suggests a compatible installed version (same major.minor) as a
concrete swiftly use command, rather than a generic placeholder.
Also clarifies the message to distinguish "not installed" from "doesn't match".

When a swift version file references an uninstalled toolchain, the error
now suggests a compatible installed version (same major.minor) as a
concrete `swiftly use` command, rather than a generic placeholder. Also
clarifies the message to distinguish "not installed" from "doesn't match".
Copy link
Copy Markdown
Member

@etcwilde etcwilde left a comment

Choose a reason for hiding this comment

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

Should probably have a test, but LGTM.

@cmcgee1024 cmcgee1024 merged commit fa8e48a into swiftlang:main May 15, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants