microsoft / vscode

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

After upgrade of extension, a previous version of the extension is being left behind, causing conflicts #49882

Closed juanfranblanco closed 6 years ago

juanfranblanco commented 6 years ago

This has been reported for the solidity extension of vscode. https://github.com/juanfranblanco/vscode-solidity/issues/69#issuecomment-389053364. Mainly the linter has stopped working.

After an investigation by the OP, there were found two versions of the extension in the %userpath%/.vscode/extension. A previous one and the current one.

Deleting them both and reinstalling fixed the problem.

I assume the issue might be due to both servers are running in the background causing the issue.

sandy081 commented 6 years ago

We do not remove old extension after updating the extension immediately. Because, there might be other windows running that extension. We remove the outdate ones after next restart.

Regarding two servers running in the background, you might have to check with the extension what's happening and why is it not able to handle that.

FYI you can have multiple VS Code windows running and each window runs the extension of same or different version based on when the window is started.

juanfranblanco commented 6 years ago

The extension itself does not do anything different as it has done for a long time, hence reporting it here. If a conflict might have arisen from this situation. The resolution was to remove the cached versions. It might have been a one-off situation as nobody has reported this.

robki commented 6 years ago

I experience this issue after using 2 seperate VSCode windows. I cannot get it working again. Already tried: disable&enable / uninstall / delete the extension folder / pc restart.

sandy081 commented 6 years ago

Conflicts cannot be resolved until restart. It is obvious that in your case two windows running with old version and new version of the extension. So cannot be removed as the window is active.

juanfranblanco commented 6 years ago

@sandy081 I think he mentioned he has deleted, uninstalled vscode and restarted the pc. ??

sandy081 commented 6 years ago

@robki What is the issue you are seeing? Can you please give more details

robki commented 6 years ago

Same issue as in https://github.com/juanfranblanco/vscode-solidity/issues/69#issuecomment-389053364 after running 2 windows

sandy081 commented 6 years ago

@robki What is the issue of having two versions in the extensions folder?