-
Notifications
You must be signed in to change notification settings - Fork 859
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
Operation not permitted when file in use in WSL #2401
Comments
I've tried, but storybook can't be used with strace, it's becoming too slow for the webpage to load and it's preventing it from accessing to the point where it "requires" files. How can I help without doing this command ? I've encountered the issue also by doing a git stash when files being stashed are used by storybook. So it's a file issue, not folders apparently. The worst part is the file is removed when there is this issue. |
Repro steps and someone might pick it up. |
The repro is super simple, that's a good thing:
|
Your Windows build number: (Type
ver
at a Windows Command Prompt)Microsoft Windows [version 10.0.15063]
What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
yarn run storybook (front-end javascript development) or run anything that uses the filesystem (unit tests in watch mode, server, anything).
What's wrong / what should be happening instead:
If you try to replace files, for example with an install of new version of a library you're using (and which is used by the program currently using the filesystem), it will result in a Operation Not permitted. You have to close the program, rerun the update of the files, and rerun the program.
This limit is not present if the tool (storybook, jest) is launched from powershell. It's only happening when using WSL.
It would be great if it was not blocking the update, it's not the case on Powershell and Linux, so it shouldn't be the case on WSL.
<cmd>
is failing, then runstrace -o strace.txt -ff <cmd>
, and post the strace.txt output here)error An unexpected error occurred: "EPERM: operation not permitted, unlink 'C:\Users\alanz\Documents\Veyo\veyo-react-fronten
d\websites\recare\app\node_modules\.bin\start-storybook'".
(from yarn upgrade library).
The text was updated successfully, but these errors were encountered: