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
When I ran swift-format over my project, it turned this
// swift-tools-version:5.7
import Foundation
import PackageDescription
Into this:
import Foundation
// swift-tools-version:5.7
import PackageDescription
Which results in this error:
error: 'hylo': package 'package.swift' is using Swift tools version 3.1.0 which is no longer supported; consider using '// swift-tools-version: 5.9' to specify the current tools version
The text was updated successfully, but these errors were encountered:
I can't imagine why it would think that comment should be glued to the other import, but in addition to fixing that, we should probably carve out a special case for // swift-tools-version:... comments to always keep them at the top of the file.
When I ran swift-format over my project, it turned this
// swift-tools-version:5.7 import Foundation import PackageDescription
Into this:
import Foundation // swift-tools-version:5.7 import PackageDescription
Which results in this error:
The text was updated successfully, but these errors were encountered: