Skip to content

[windows] Code 513 "you don't have permission error" when clicking the dependency reset button after using local version of dependency #1210

Open
@michael-weng

Description

@michael-weng

Describe the bug
Code 513 "you don't have permission error" when clicking the dependency reset button after using local version of dependency

To Reproduce
Steps to reproduce the behavior:

  1. open dependencies under asset/tests
  2. on the bottom left dependencies panel, right click on swift-markdown and click use local version
  3. pick asset/tests/Swift-Markdown folder
  4. click the reset button in the dependencies view (the button of the left of the resolve refresh circle button)

or run the dependency test on windows

Expected behavior
Action completed successfully

Environment

  • OS: windows 11 x86-64
  • Swift version (output of swift --version): 6.0.2
  • Visual Studio Code version: 1.95.2
  • vscode-swift version: 371bbf

Additional context
According to spm dev:
Windows is well known for file locking. That's usually what that means. Could be Windows Defender inspecting the build output. Or if you have sourcekit-lsp running, it opens the index database which locks it.

I can attest to this by trying the similar commands on command line without vscode open and the error will not show up.

So we need to decide what's the appropriate behavior we want to adopt on windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsIssue specific to Windows

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions