microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.57k stars 28.66k forks source link

Unable to uninstall Extensions #33787

Closed st-schneider closed 7 years ago

st-schneider commented 7 years ago

Steps to Reproduce:

  1. Go to Extensions
  2. Try to uninstall an extension
  3. Massive amount Unknown Errors in devtools console image
st-schneider commented 7 years ago

This is by the way not specific to a certain extension, I have this on various once also some newly installed and some old extensions.

sandy081 commented 7 years ago

Can you follow following steps and provide more information

Thanks

st-schneider commented 7 years ago

Here you go @sandy081 -1504787167235.txt

sandy081 commented 7 years ago

@bm-stschneider Are you sure the above log is from the Shared process ? I am suspecting this is same as the one you pasted in the desription.

st-schneider commented 7 years ago

You are correct. Sorry, hang on.

st-schneider commented 7 years ago

The shared process stays empty.

sandy081 commented 7 years ago

Hmm.. strange.

Is it happening for all extensions? Any luck restarting VS Code?

st-schneider commented 7 years ago

Currently, yes. No restarting does not change anything. I can still uninstall them manually of course by deleting them in the extensions folder. Just trying to help :)

sandy081 commented 7 years ago

@joaomoreno Can you please help in knowing the root cause of this issue? Anything to do with the folder access permissions?

joaomoreno commented 7 years ago

@bm-stschneider Does uninstalling from the command line work?

code --uninstall-extension publisher.name
st-schneider commented 7 years ago

@joaomoreno No, does not work.

joaomoreno commented 7 years ago

Any errors there? Any output?

st-schneider commented 7 years ago

Nope, vscode just starts normally and does not prompt anything.

joaomoreno commented 7 years ago

Can you try closing Code, moving the ~/.vscode/extensions folder away, launching Code, install a few extensions and then try to uninstall them? Maybe there is something strange in the extensions folder which breaks things.

st-schneider commented 7 years ago

A fresh extensions folder works

st-schneider commented 7 years ago

I had a look at the extensions folder. Is it correct that there are sometimes multiple versions of the same extension in there?

joaomoreno commented 7 years ago

Yeah that should be fine. Any chance you can zip that up so we take a look at it?

st-schneider commented 7 years ago

I guess not. But as far as I remember it started when I tried to install from the marketplace directly. Sometime I have the extension already installed and sometime vscode wouldn't start to prompt me for installation when I already have installed it from within vscode directly.

joaomoreno commented 7 years ago

Oh, you didn't save the folder? You deleted it?

st-schneider commented 7 years ago

No, but I removed all the extra version of some extensions and that might have solved the problem. But since it where multiple I don't know which one might have been the show stopper.

joaomoreno commented 7 years ago

Alright, I'll close this for now. Keep an eye open. If it happens again send us the archived folder. :+1:

G3z commented 6 years ago

this just happened to me and I noticed some incorrect permissions

drwxr-xr-x  18 root  staff  576  2 Nov 13:03 vsmobile.vscode-react-native-0.5.1
drwxr-xr-x  18 g3z   staff  576  7 Nov 16:52 vsmobile.vscode-react-native-0.5.2

running a sudo chown -R g3z extensions fixed the issue

My best guess: some extension was installed (or auto updated) while i was running code as super user ( to edit httpd.conf or php.ini, in case you are wondering) and before uninstalling an extension vscode has to check some files in the extension folder it now can't access