Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create 'launch.json' file inside the '.vscode' folder ({0})

I'm on a linux machine running vscode. I am trying to do some debugging but whenever I try to select the environment configuration I get the message, "Unable to create 'launch.json' file inside the '.vscode' folder ({0})."

I suspect it could be a permissions thing but when I try to run vscode as an elevated user I am warned not to. Instead it advises that I can change the user data directory. Will this fix my problem?

like image 670
Reynaldo St Bernard Avatar asked Nov 27 '25 03:11

Reynaldo St Bernard


1 Answers

After some digging, it turns out that the .vscode directory is created inside the root folder of each project added to vscode. To resolve the problem I had to create the folder manually and give permissions for vscode to write to the directory.

like image 179
Reynaldo St Bernard Avatar answered Nov 29 '25 19:11

Reynaldo St Bernard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!