Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu 18 VS Code error Enoent: no such directory, lstat'/snap/code'

I'm getting this error in VSCode after the latest update of VSCode. This happens in Version: 1.30.0.

I think VSCode is looking for wrong directory, the actual VSCode directory is : '~/snap/code/' not in '/snap/code/'

any idea how to fix this ?

Thanks

like image 854
S.A. Avatar asked Dec 15 '18 15:12

S.A.


1 Answers

Not a fix, but a workaround:

sudo ln --symbolic /snap/vscode /snap/code

It might be noteworthy that my snaps are in /snap, not ~/snap. You may need to adjust if yours are in your home directory.

like image 195
heyjonathan Avatar answered Nov 13 '22 01:11

heyjonathan