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

Modifying folders not created in the workspace sometimes causes Error: EPERM: operation not permitted #1490

Closed
Dahesor opened this issue Jul 7, 2024 · 2 comments

Comments

@Dahesor
Copy link

Dahesor commented Jul 7, 2024

I started a new data pack, and copied some files and folders from another data pack to this new one. However, when I am trying to rename the copied folders, vs code took a minute and said Error: EPERM: operation not permitted.

I disabled all my extensions and it can rename normally again. I then enabled my extensions one by one and test if it can rename, and I learned it is Spyglass causing this problem.

Moving all the contents inside this folder away makes it rename-able again, but if I put them back in then I can no longer rename it.

This never happened on folders that I created in this new data pack.

When I copied the folders from another data pack into this new one, a lot of warning popped out because all the name space paths are incorrect. It might has something to do with this? Or something wrong in the cache?

I also searched on the internet and found the following posts, not sure if they are useful:

https://stackoverflow.com/questions/58707277/vs-code-error-eperm-operation-not-permitted

microsoft/vscode#184145

Thanks

@misode
Copy link
Member

misode commented Jul 7, 2024

Duplicate of #1414

@misode misode marked this as a duplicate of #1414 Jul 7, 2024
@misode misode closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2024
@carloswm85
Copy link

Here's a workaround to this problem: https://stackoverflow.com/a/78900972/7389293


This seems to be a problem related to running MULTIPLE processes inside VSCode, and with this disallowing the move of folders.

I received this error while running an Angular 17 app and a NodeJS server at the same time, and trying to move one of the project folders:

enter image description here

I solved it in Windows 11 by using File LockSmith.

  1. Stop all the visible task and processes you may have running:

    enter image description here

  2. And then execute File Locksmith in the projects root folder (in this case, named _ta-app).

  3. Press End Task buttons for all child processes, except for the main VSCode editor one.

    enter image description here

  4. That should enable moving/renaming folders.

    enter image description here

As you can see, it is working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants