Closed
Description
Is it reproducible with SwiftPM command-line tools: swift build
, swift test
, swift package
etc?
- Confirmed reproduction steps with SwiftPM CLI.
Description
SwiftPM diagnostics for the Package.swift show up at a different line/column than SourceKit-LSP. In this picture the first diagnostics is from SourceKit and shows up at right place, but SwiftPM indicates the diagnostic is on the next line
Expected behavior
No response
Actual behavior
No response
Steps to reproduce
- Set macOS platform to v13 in Package.swift
- Set swift tool version to 5.6:
// swift-tools-version: 5.6
- Save file and
swift package resolve
As you can see in the picture above the line was line 9, so line is off by one, but the column seems right
Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version ; uname -a
)
swift-driver version: 1.110 Apple Swift version 6.0 (swiftlang-6.0.0.4.52 clang-1600.0.21.1.3)
Target: arm64-apple-macosx15.0