swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.75k stars 1.35k forks source link

Emit the line and column numbers of dependency errors in `Package.swift` #7947

Open AppAppWorks opened 2 months ago

AppAppWorks commented 2 months ago

Description

Currently the error message emitted for a dependency error during swift build doesn't include the line and column number of the declaration of such dependency in Package.swift, including them into the error message would immensely help editors emit better diagnostics.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

No response