Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies downloaded from a registry show an empty folder in dependencies view #1307

Open
adam-fowler opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@adam-fowler
Copy link
Contributor

Describe the bug
Dependencies downloaded from a SwiftPM registry show an empty folder in dependencies view and fail to display what version is being used.

To Reproduce
Steps to reproduce the behavior:

  1. Add dependency to a Package that is downloaded from a swift package registry
  2. Once resolve has finished checkout Package dependencies pane.
  3. The package will be displayed, but it won't have a branch or version number and when you click to open the folder you'll find it is empty

Expected behavior
Dependencies downloaded from a SwiftPM registry are visible in VSCode

Additional context
SwiftPM registry dependencies are stored in a registry/downloads folder in the .build folder. Here is an example of an entry in the workspace-state.json

      {
        "basedOn" : null,
        "packageRef" : {
          "identity" : "hummingbird-project.hummingbird",
          "kind" : "registry",
          "location" : "hummingbird-project.hummingbird",
          "name" : "hummingbird-project.hummingbird"
        },
        "state" : {
          "name" : "registryDownload",
          "version" : "2.6.1"
        },
        "subpath" : "hummingbird-project/hummingbird/2.6.1"
      },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant