Today an update showed up and it fails to update. Tried two times. My VS is version 15.3.3.
I have attached the install log.
Hi @BladeMF,
Unfortunately there is a known problem with the VSIX installer in Visual Studio 15.3, Microsoft are working on a fix, but in the meantime could you try the instructions they provided here? https://github.com/github/VisualStudio/issues/1206#issuecomment-326053090
You may also want to check out the issue on the VS developer community site: https://developercommunity.visualstudio.com/content/problem/102178/error-installing-github-extension.html
Hi @grokys,
I guess I can wait for a fix from MS, it's not that crucial yet. I just thought I'd let you know. I'm guessing you're positive that this is the same bug or not some incompatibility?
I'm not positive this is the same bug (@Michael-Eng does this look like the same problem to you?), however, I suspect that the fix/workaround will be the same.
This doesn't look like the same bug, it looks like a packaging issue. @BladeMF Which version of the extension do you currently have, and how did you install it originally? From the Extensions and Updates menu, or from the Visual Studio installer when you installed VS itself?
I've been trying to repro this but no luck so far. 😞
@BladeMF Uninstalling the extension manually might fix this problem. Could you try the following steps:
Developer Command Prompt for VS 2017 in administrator mode (right-click on the Start menu shortcut and Run as administrator)vsixinstaller /uninstall:c3d3dc68-c977-411f-b3e8-03b0dccf7dfc to uninstall the currently installed extensionHopefully that completes successfully and then you can install the latest version. 🤞
Maybe to repo this you need to install this on 15.3 and then upgrade to 15.3.3 and then upgrade the extension.
I wonder if I should wait for the fix for the other bug so we can all see if they are related. If you didn't miss anything in the package, maybe it is a bug.
BTW, I haven't tried uninstalling from the UI.
I have the same error
VSIXInstaller_5107ee1d-b3e9-4de3-92ad-1566cfdf8cf0.txt
and i tried the uninstall command and the #1206 (comment) above, and neither helped me.
@vishnu4 When you ran the uninstall command, did it also fail in the same way? Do you have the log for that?
@tinaschrepfer @michael-eng Could this be a side effect of setting the static install location of the extension in 2.3.2.32?
@BladeMF @vishnu4 We've had problems in the past related to bugs in the VS and VSIX installer which kinda have similar symptoms. https://github.com/github/VisualStudio/issues/987#issuecomment-300839715 and https://github.com/github/VisualStudio/issues/987#issuecomment-300755269 helped in the past, could you try those steps?
I installed the latest GitHub extension on the VS Marketplace this morning and it installed successfully.
I discussed this with Tina - We're wondering if this might be related to @BladeMF upgrading the GitHub extension.
@BladeMF, can you please run https://aka.ms/vscollect and then put the resulting zip file somewhere we can access it (it's large)
Thanks!
Same issue here. Tried both of the workarounds above, neither worked. Install log is below, the error was the same both when upgrading and when running the vsixinstall command.
@BladeMF , @vaindil, do you recall what your install order was for GitHub extension? Looking at the logs it seems like there was an attempt to upgrade from 2.3.0.24 to 2.3.1.30, which was successful, and then an attempt to upgrade from 2.3.1.30 to 2.3.2.32, which was unsuccessful. Did you do a system restore at any point between each install?
If you can, would you mind outputting all the directories and files under Common7\IDE\Extensions and upload that somewhere? We don't need the actual files, just the paths.
Thanks!
Tina
@tinaschrepfer My current version is indeed 2.3.1.30 (haven't had any problems before).
My files are:
01.09.2017 г. 09:43
To avoid cluttering this issue, I've moved this comment to #1217 (re: out of sync bindingRedirects).
@tinaschrepfer Current version is also 2.3.1.30. The result of tree on Common7\IDE\Extensions is here.
Regarding the original issue of not being able to upgrade to 2.3.32. We took a look at the logs you provided (thank you!) and from our analysis it looks like the following happened:
From the logs it looks like somewhere between 2.3.1.30 and the attempt to upgrade to 2.3.2.32, the setup engine somehow became unaware that 2.3.1.30 was installed. When the attempt to upgrade to 2.3.2.32 was made the engine still thinks that 2.3.0.24 is installed, so it tries to remove that instead of 2.3.1.30, but 2.3.0.24 is already gone. The engine did successfully install 2.3.2.32, but VSIXInstaller sees that 2.3.1.30 is still present, so it requests that 2.3.1.30 be uninstalled by calling the engine to uninstall it. However, because the engine has no idea 2.3.1.30 was ever installed, it doesn't know what to do and the exception you see is thrown.
Unfortunately, we don't have enough logging information to explain why the engine just forgot that 2.3.1.30 was installed. Did you run a system restore at some point or anything? We have an item on the backlog to provide more snapshot logging information so we can trace this better.
For now, to get around this, you can manually delete 2.3.1.30 by deleting everything under Common7\IDE\Extensions\pyrgfpsc.ea0 (perhaps copy the files somewhere else first as a backup), and then run devenv /updateconfiguration. That should load 2.3.2.32 properly.
Thanks!
Tina
Hi @tinaschrepfer
What happened was an upgrade to VS to 15.3.3 (even two upgrade). Maybe the mess happened then or earlier. Will try the delete trick and let you know.
I can confirm that after deleting the files and running /updateconfiguration, VS showed that I have 2.3.2.32 installed.
@tinaschrepfer I also upgraded VS in between there, no system restore or anything else like that. Deleting the files and running devenv /updateconfiguration did indeed fix the problem. Thank you!
Works for me as well. thank you.
Thanks for the confirmations. We are working on a fix internally to prevent this issue from occurring in the future. For now, please make sure that VS Installer is shut down before running VSIXInstaller. That should prevent this issue from occurring.
Thanks!
Tina
Awesome, thank you for all the help @tinaschrepfer!
I currently have this issue, since the past 4 days on VS Enterprise 2017.
running GitHub.VisualStudio.vsix
9/8/2017 9:07:04 PM - Install Error : System.InvalidOperationException: A value for 'Component' needs to be specified in the catalog.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineUnInstall(IInstalledExtension extension, Boolean downgrade)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.UninstallInternal(IInstalledExtension extension, Boolean forceDelete, Version targetedVSVersion, Boolean downgrade)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CommitInstalledAndUninstalledExtensions(IEnumerable1 installedExtensions, IEnumerable1 uninstalledExtensions, IEnumerable`1 packComponentChanges, Version targetedVSVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)
I removed the directory: extensions/pyrgfpsc.ea0 then ran: devenv /updateconfiguration
Then tried to install it again . . it said it was already installed. . .
I ran the command again: devenv /updateconfiguration
Opened up VS and things seem to be fine. . . I see the extension. . so not sure what the pyrgfpsc.ea0 was (I guess a new version of the extension), although I confirmed the directory was gone. There and no updates are showing in VS.
Extension version 2.3.2.32 shows as installed on 9/6/2017 (I guess this is a previous version.)
@brwilkinson, Thanks for the detailed information. Please let us know if you have any have any further issues updating the extension.
@BladeMF there have been numerous updates to the installer with 15.5 which was released yesterday, do they solve your problem? A user has also managed to fix the same problem here https://github.com/github/VisualStudio/issues/1295#issuecomment-349234477 if the problem is still there.
Closing this as there's been no reply for 7 days. If you're still having the problem, please let us know and we'll reopen!
Most helpful comment
Regarding the original issue of not being able to upgrade to 2.3.32. We took a look at the logs you provided (thank you!) and from our analysis it looks like the following happened:
From the logs it looks like somewhere between 2.3.1.30 and the attempt to upgrade to 2.3.2.32, the setup engine somehow became unaware that 2.3.1.30 was installed. When the attempt to upgrade to 2.3.2.32 was made the engine still thinks that 2.3.0.24 is installed, so it tries to remove that instead of 2.3.1.30, but 2.3.0.24 is already gone. The engine did successfully install 2.3.2.32, but VSIXInstaller sees that 2.3.1.30 is still present, so it requests that 2.3.1.30 be uninstalled by calling the engine to uninstall it. However, because the engine has no idea 2.3.1.30 was ever installed, it doesn't know what to do and the exception you see is thrown.
Unfortunately, we don't have enough logging information to explain why the engine just forgot that 2.3.1.30 was installed. Did you run a system restore at some point or anything? We have an item on the backlog to provide more snapshot logging information so we can trace this better.
For now, to get around this, you can manually delete 2.3.1.30 by deleting everything under Common7\IDE\Extensions\pyrgfpsc.ea0 (perhaps copy the files somewhere else first as a backup), and then run devenv /updateconfiguration. That should load 2.3.2.32 properly.
Thanks!
Tina