0

I'm getting a bizarre error seemingly out of the blue. A google search came back empty. I'm stumped here. Running Ubuntu 18.04:

code . 

internal error, please report: running "vscode" failed: cannot find current revision for snap vscode: readlink /snap/vscode/current: permission denied

'sudo code .' will result in the same error message.

qorka
  • 139
  • 1
  • 11
  • Maybe try `sudo code .` Not sure as I don't use product but it might work. Don't open and save any files though if it works. Just exit Visual Code and restart normally with `code .`. I presume your snaps aren't being updated automatically by `systemd` boot and it's trying to do it at run-time instead. – WinEunuuchs2Unix Oct 12 '18 at 00:14
  • 1
    Another point to make is it's an **internal error** and you should report it to MicroSoft. – WinEunuuchs2Unix Oct 12 '18 at 00:21
  • I'd rather do a reinstall, just to be sure. – admin Oct 12 '18 at 02:06
  • 2
    Possible duplicate of [How do I install Visual Studio Code?](https://askubuntu.com/questions/616075/how-do-i-install-visual-studio-code) – N0rbert Oct 12 '18 at 08:03
  • Not a duplicate as the installation of VS code does not address the issue. – qorka Oct 12 '18 at 12:49

1 Answers1

0
sudo chmod 777 -R /snap/vscode/

Did the trick.

qorka
  • 139
  • 1
  • 11