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

Error: EPERM: operation not permitted, rename #399

Closed
4 tasks done
longshihui opened this issue May 25, 2024 · 1 comment
Closed
4 tasks done

Error: EPERM: operation not permitted, rename #399

longshihui opened this issue May 25, 2024 · 1 comment

Comments

@longshihui
Copy link

longshihui commented May 25, 2024

Describe the bug

When enable vitest vscode extension, rename dirname is not permitted.
This error always occurs on monorepos.
When project is not monorepos, rename is ok.

System: Windows 11 23H2
VSCode Version: 1.89.0

Reproduction

  1. git clone https://github.com/longshihui/vitest-extension-rename-test.git
  2. open the project and run pnpm install
  3. disable all vscode's extensions and restart vscode (ensure all extensions is disabled)
  4. try rename ./packages/test-1 to ./packages/test-3
  5. only enable vitest extension
  6. try rename ./packages/test-1 to ./packages/test-3
  7. get error
vitest-extension-rename-test.-.Visual.Studio.Code.Admin.2024-05-25.19-06-45_2024525191536.mp4

Output

nothing.

Version

v0.10.7(latest)

Validations

@sefabaser
Copy link

sefabaser commented Aug 14, 2024

I have exactly the same problem. Happens with the same reproduction steps.

To fix this I did following steps:

  • Installing system version of VSCode
  • Running VSCode in the admin mode
  • Giving all security accesses for the user for the folder
  • Changing node and git versions
  • Disabling all extensions (only disabling Vitest extension is working)

VScode: 1.92.1 (system setup)
Vitest extension: 1.0.7
OS: Windows 10

@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants