raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
129 stars 16 forks source link

extension refuses to uninstall #55

Closed Bazmundi closed 2 months ago

Bazmundi commented 2 months ago

Good job. I thought I woudl uninstall then reinstall the extension to try to "fix" the problems I reported at https://github.com/raspberrypi/pico-vscode/issues/54

If I try to disable the extension I get:

Cannot disable 'C/C++' extension alone.  'Blender Development' and 'PlatformIO IDE' extensions depend on this. Do you want to disable all these extensions?

I am not having to rip out MSCode all together to sort this nuasance out am I?

will-v-pi commented 2 months ago

It looks like this is related to our use of an Extension Pack, which therefore uninstalls the entire pack when you click uninstall. I'm able to reproduce #51 now, if I install both this extension and the PlatformIO IDE before attempting to uninstall this extension.

We can investigate using dependencies instead, which might solve this issue. Although, uninstalling and reinstalling this extension is very unlikely to be a useful debugging step anyway, due to the nature of how VS Code extensions work.

will-v-pi commented 2 months ago

I think this has been fixed with that PR - could you download the .vsix file from the actions run (https://github.com/raspberrypi/pico-vscode/actions/runs/10565856890), install that, and then try uninstalling it and it should work cleanly?

stelladraco27 commented 2 months ago

I tried installing the .vsix file. It does not help with uninstallation. I also tried reverting to an older version, didn't work either.

will-v-pi commented 2 months ago

After you installed that .vsix file, did it still have an Extension Pack tab on the extension page (where the install buttons etc are), or did it have Dependencies tab instead? Also, could you elaborate on what errors you see when uninstalling, and possibly send a screenshot, and a list of other Extensions you have installed?