vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Error: EPERM: operation not permitted, rename

Open longshihui opened this issue 9 months ago • 0 comments

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

https://github.com/vitest-dev/vscode/assets/17525817/ba7be853-5242-47a9-961a-b0521f3e6e22

Output

nothing.

Version

v0.10.7(latest)

Validations

longshihui avatar May 25 '24 11:05 longshihui