Skip to content

Better diagnostic message for invalid dependencies #8732

Open
@award999

Description

@award999

Description

We've had a request for the Swift Extension for VS Code: swiftlang/vscode-swift#951. It would be nice to show diagnostics/problems for Package.swift issues like invalid dependencies but we would need more info from SwiftPM.

For example, if I misspelled the branch name and a package resolve is triggered:
Image

Or if I misspell the dependency I'm trying to import, and run a build:
Image

Not sure if these error messages are coming from Git or SwiftPM?

Expected behavior

If we can have the line numbers where the issue is happening and the package manifest path.

Actual behavior

No location information for the error message

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

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

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions