You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix for SR-4134 introduced an error for unrecognized forms of the Package.swift swift-tools-version comment, but the error is generic and unhelpful when the only "misspelling" is whitespace:
Really the problem here is that the parsing is overly strict with regards to whitespace. Requiring exactly a single space after the slashes and also none after the colon is unnecessarily arcane. The package manager should be able to work with any amount of space between the "tokens" of the comment, something like:
^//\s*swift-tools-version:\s*\d+\.\d+$
The text was updated successfully, but these errors were encountered:
Environment
Swift Package Manager - Swift 5.3.0
Additional Detail from JIRA
md5: fce3f911aee423772a66b24f8aa07b88
Issue Description:
The fix for SR-4134 introduced an error for unrecognized forms of the Package.swift
swift-tools-version
comment, but the error is generic and unhelpful when the only "misspelling" is whitespace:Or:
Really the problem here is that the parsing is overly strict with regards to whitespace. Requiring exactly a single space after the slashes and also none after the colon is unnecessarily arcane. The package manager should be able to work with any amount of space between the "tokens" of the comment, something like:
^//\s*swift-tools-version:\s*\d+\.\d+$
The text was updated successfully, but these errors were encountered: