Skip to content

PowerShell extension cannot be upgraded cleanly #27

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

Closed
gerane opened this issue Nov 24, 2015 · 2 comments
Closed

PowerShell extension cannot be upgraded cleanly #27

gerane opened this issue Nov 24, 2015 · 2 comments
Labels
Bug: VS Code Bugs in VS Code itself.

Comments

@gerane
Copy link

gerane commented Nov 24, 2015

I had multiple windows open. The editor I updated the Powershell Extension in only had xml files loaded in the open window and the working files section. I had a second window open with a .bat file in the editor and an assortment of files in the working files section. A few being ps1 files. I am unsure if the Powershell editor services will still be loaded/locked if there are files in the working files section or not.

I updated the extension and it reloaded the current editor with the xml files. At this point the extension plugin stopped working and could no longer load extensions. I then relaunched the editor and I started getting errors where the extensions plugin was crashing. A second restart cleared this up, but the Powershell plugin was left in a broken state. What was left in the directory was the following:

.vsixmanifest
bin --> Microsoft.PowerShell.EditorServices.dll
--> Microsoft.PowerShell.EditorServices.Host.DebugAdapter.cmd
--> Microsoft.PowerShell.EditorServices.Host.exe
--> Microsoft.PowerShell.EditorServices.Protocol.dll

I am assuming the second open editor kept the Editor Services locked and broke the update. @daviwil we talked about the log maybe being the culprit, but I did not have the editor services log still loaded in cmtrace, so that was not what had the lock.

Should VS Code require a full restart before fully updating it's plugins instead of just the currently open editor? If we compare VSCode to Atom, I believe Atom requires a complete restart. When you use the Restart prompt presented by a extension install or update, it only restarts the current window and not all windows. I am unsure if this would be something this plugin should fix or VS Code itself.

I can try to find some more logs if you need, I didn't see any at first glance since I had restarted the editor so many times. I am also going to try to reproduce this in a few different ways later when i have more time.

@daviwil
Copy link
Contributor

daviwil commented Nov 24, 2015

Thanks for filing this! I experienced the same problem when I tried to upgrade yesterday. This is something that VS Code has to help with and they already having a bug tracking the issue:

microsoft/vscode#537

@daviwil daviwil added the Bug: VS Code Bugs in VS Code itself. label Nov 30, 2015
@daviwil daviwil changed the title Update to v0.2.0 breaks the extension. PowerShell extension cannot be upgraded cleanly Nov 30, 2015
@daviwil
Copy link
Contributor

daviwil commented Dec 11, 2015

This issue will be fixed with the next update of VS Code and the fix to this issue:

PowerShell/PowerShellEditorServices#70

If after that you still see it we can reopen this bug and investigate some more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: VS Code Bugs in VS Code itself.
Projects
None yet
Development

No branches or pull requests

2 participants