Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "An error occurred during execution. Make sure you have write access rights to the VSCode files, see README" #2

Open
fakhamatia opened this issue Apr 30, 2019 · 7 comments

Comments

@fakhamatia
Copy link

when i use fix show this error
An error occurred during execution. Make sure you have write access rights to the VSCode files, see README
and when click one more time
No changes to checksums were necessary.

@mike652638
Copy link

Hi, same problem occured, the solution would be Open VS Code as Administrator.

@edwinramirez
Copy link

edwinramirez commented May 15, 2020

Any idea on how to do this in Ubuntu?
If I run sudo code --user-data-dir="~/.vscode-root" I open a VSC instance with no extensions installed. So this doesn't help at all.

Edit: Spoke (typed?) too soon. I ran VSC with the previous command and installed the Fix Checksum extension on this new, fresh Admin VSC instance and later ran the Fix Checksums: Apply command. Closed everything and reopened VSC as normal and no more errors.

@AbhinavJuyal
Copy link

Any idea on how to do this in Ubuntu?
If I run sudo code --user-data-dir="~/.vscode-root" I open a VSC instance with no extensions installed. So this doesn't help at all.

Edit: Spoke (typed?) too soon. I ran VSC with the previous command and installed the Fix Checksum extension on this new, fresh Admin VSC instance and later ran the Fix Checksums: Apply command. Closed everything and reopened VSC as normal and no more errors.

I tried to using this command on my Ubuntu 20.04 but nothing runs, I tried to look for solutions but I haven't found any. I tried to install vscode through both snapstore and apt installation. I found that this command only works with snap installation of vscode.
Can anyone suggest me a different solution to this problem?

@EsamLasheen
Copy link

Any idea on how to do this in Ubuntu?
If I run sudo code --user-data-dir="~/.vscode-root" I open a VSC instance with no extensions installed. So this doesn't help at all.
Edit: Spoke (typed?) too soon. I ran VSC with the previous command and installed the Fix Checksum extension on this new, fresh Admin VSC instance and later ran the Fix Checksums: Apply command. Closed everything and reopened VSC as normal and no more errors.

I tried to using this command on my Ubuntu 20.04 but nothing runs, I tried to look for solutions but I haven't found any. I tried to install vscode through both snapstore and apt installation. I found that this command only works with snap installation of vscode. Can anyone suggest me a different solution to this problem?

Hello did you fix it?

@SoyJan
Copy link

SoyJan commented Jun 8, 2022

I was able to run the vscode as superuser, but now the problem is that the window is totally blank, I don't know if it has something to do with the line I used.
sudo code --user-data-dir="~/.vscode-root" --no-sandbox
When I hover the mouse over the window I see that I can select the options for a clean installation of vscode, but clicking on them does not change anything. Can someone try to use it and tell me if it happens the same?

@JohnKun136NVCP
Copy link

when i use fix show this error An error occurred during execution. Make sure you have write access rights to the VSCode files, see README and when click one more time No changes to checksums were necessary.

Well I tried this and it worked. It's not necesary to start VS with root just give some permissions with this comand.

sudo chown -R $(whoami) /usr/share/code/

You can add the path where your extension was installed or give access to all extensions.

@ghost
Copy link

ghost commented Dec 3, 2023

I don't know if what I did was correct but I've changed the permissions with chmod, because chown only changes the propietary of the directory, something like this:

  1. For the installation path of VSCode:
    sudo chmod -R 777 /usr/share/code/
  2. For the installation path of VSCode extensions:
    sudo chmod -R 777 /home/user/.vscode/

This worked for me on debian 12, if I've broked something please feel free to tell me how do i fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants