sleistner / vscode-fileutils

Visual Studio Code Extension
https://marketplace.visualstudio.com/items?itemName=sleistner.vscode-fileutils
MIT License
190 stars 26 forks source link

IGNORING workspace edit: NoPermissions on file renaming #506

Closed ryzhovalex closed 1 year ago

ryzhovalex commented 1 year ago

Describe the bug A file does not change name after using renaming command.

To Reproduce Steps to reproduce the behavior:

  1. Open VSCode with any project in your home directory
  2. Create file "test.py" with any content
  3. Call File Utils: Rename and rename "test.py" -> "anything.py"
  4. See that the file name isn't changed, the prompt is closed

Expected behavior Rename a file using File Utils: Rename.

Desktop (please complete the following information):

Additional context VSCode logs related to File Utils:

2023-01-25 12:41:51.097 [error] NoPermissions (FileSystemError): Error: EACCES: permission denied, copyfile '/home/alex/dev/file-utils-test/test.py' -> '/anything.py'
    at l (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:34:4023)
    at i.Y (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:39:36565)
    at i.rename (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:39:34724)
2023-01-25 12:41:51.098 [warning] IGNORING workspace edit: NoPermissions (FileSystemError): Error: EACCES: permission denied, copyfile '/home/alex/dev/file-utils-test/test.py' -> '/anything.py'

Seems like on renaming copying is made, and according to logs File Utils tries to copy renamed file into root directory "/anything.py".

adamjosefus commented 1 year ago

Same issue. macOS 13.2

sleistner commented 1 year ago

Thank you, that one slipped through the tests. It is going to be addressed with a new release later today. https://github.com/sleistner/vscode-fileutils/pull/504

sleistner commented 1 year ago

:tada: This issue has been resolved in version 3.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: