WSL Unable to write file

Hello!
I’ve just set up WSL and VSCode on my windows machine, I’ve done my best to follow the instructions to the letter, but I am thrown this error every time I try to make an edit to my ruby scripts.

image

Could someone please lend a hand?
Cheers!

Holy hell!

After some internet digging, I found the solution to this issue and if any of you ever need it, here it is:
Enter the following commands into your linux terminal:

sudo su
sudo chown -R (replace with your linux username) (replace with your file path)

Regards

1 Like