lehni / vscode-fix-checksums

A VSCode extension to adjust checksums after changes to core files
https://marketplace.visualstudio.com/items?itemName=lehni.vscode-fix-checksums
85 stars 9 forks source link

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

Open fakhamatia opened 5 years ago

fakhamatia commented 5 years ago

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 commented 5 years ago

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

edwinramirez commented 4 years ago

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 commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 10 months ago

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.