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

[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 opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working windows Issue specific to Windows

Comments

@michael-weng
Copy link
Contributor

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.

@michael-weng michael-weng added the bug Something isn't working label Nov 18, 2024
@award999 award999 added the windows Issue specific to Windows label Nov 20, 2024
@award999 award999 changed the title Code 513 "you don't have permission error" when clicking the dependency reset button after using local version of dependency [windows] Code 513 "you don't have permission error" when clicking the dependency reset button after using local version of dependency Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Issue specific to Windows
Development

No branches or pull requests

2 participants