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

WSL filesystem triggers write locks when other Unix systems do not #4315

Closed
fgarcia opened this issue Jul 17, 2019 · 1 comment
Closed

WSL filesystem triggers write locks when other Unix systems do not #4315

fgarcia opened this issue Jul 17, 2019 · 1 comment

Comments

@fgarcia
Copy link

fgarcia commented Jul 17, 2019

There is one tiny difference in the way Wsl filesystem deals with files compared to Linux.

As a node user, when I try to do an npm upgrade I tend to get "NPM Access Denied Errors (Error: EACCES)" and also I get some random denied access errors in VsCode moving folders (just with WSL containers)

I found many issues mentioning how to fix permission problems but that fixes nothing

After a while getting used to WSL I noticed that the root problem is that WSL tends to grant a write lock to some files which never happen to me before in Linux and Mac OS X

In my case this happens specially with VsCode or running file watchers in the terminal.

After noticing this I solved lots of frequent file access problems by just closing all extra terminals and VsCode.

Was this limitation already mentioned somewhere? Will it be solved on WSL2? I think it is an essential tip for people doing Javascript/node development in WSL

@therealkenc
Copy link
Collaborator

This is #1529 #1956 and friends.

Will it be solved on WSL2?

For the use case of npm upgrade when run with Linux npm on the ext4 VHD (aka, /home), yes that should be better 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

2 participants