In my Ubuntu system: Linux aldebaran 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Normally I go to the directory where the C++ source is located and start VS Code with
user-prompt> code .
On locally stored projects this works fine. But not within a mounted cifs volume from my NAS. I immediately get:
cannot stat path of the current working directory: Permission denied
The directory is perfectly readable or writable by all other commands and bash scripts, but only VS Code has problems.
Starting with "sudo" make no difference. Same error.
Any idea ?
It is probably because you installed a snap version of vscode.
uninstall vscode with :
sudo snap remove code
and try installing it with the deb package on https://code.visualstudio.com/ using :
sudo apt install ./VS_CODE_FILENAME.deb