none
Unable to update GitHub in Visual Studio 2017

    Question

  • The last update of GitHub that I have is 2.3.1.30. The version after that gave grief. I have tried to update periodically since then and still the same thing. The new version as of this writing is 2.3.6.391 and still I cannot update or uninstall and reinstall.

    The following image shows the extension and version.

    Here is the current error that I get, if I proceed with the close and update.

    If I download GitHub using the "More Information" link in the first image, I get the following:

    As uninstalling GitHub is not possible and I refuse to uninstall Visual Studio 2017 just to fix this problem, how do I update GitHub?

    Here is my version information for Visual Studio. The VS2017 revision does not matter, as I have had this problem now for a few months and during the time, Microsoft has come out with about two updates to Visual Studio.


    Hopefully, I gave enough information.

    Sarah

    Tuesday, December 05, 2017 4:35 PM

All replies

  • Hi Sarah,

    Welcome to MSDN forum.

    Please have a look at the feedback about GitHub extension:

    1. Shutdown all instances of VS

    2. Update your state.json file

    • Backup your c:\programdata\Microsoft\VisualStudio\Packages_Instances[hashid]\state.json file
    • In an elevated command prompt, edit the state.json file and delete all GitHub entries in the file file including the surrounding { … }.  For example: {"id": "GitHub.VisualStudio","version": "2.2.0.10","type": "Vsix"}

    3. Delete the extension directory/directories that contain the GitHub extension. Since the GitHub extension installs to a random location, we need to find the folders

    • In an elevated command prompt, go to c:\program files (x86)\Microsoft\VisualStudio[Community/Pro/Enterprise]\Common7\IDE\Extensions
    • Run “dir /s *GitHub*”
    • Delete the directories that contain the GitHub files

    4.Delete the extension cache files at c:\users[username]\AppData\Local\Microsoft\VisualStudio\15.0[hashid]\Extensions\*.cache

    5.Restart VS and reinstall the GitHub extension

    Best regards,

    Joyce


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, December 06, 2017 3:02 AM
  • I complied with the steps, no go.

    Note: I have VS2013, VS2015, and VS2017 installed.

    Update your state.json file steps

    Two folders found:

    C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\96fc35ea

    C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\2c3641b4

    I deleted all GitHub entries.

    Delete the extension directory/directories that contain the GitHub extension.

    C:\Program Files (x86)\Microsoft\Visual Studio 14.0\Common7\IDE\Extensions

    I successfully deleted all folders containing *GitHub*

    Delete the extension cache files at.

    C:\Users\Sarah\AppData\Local\Microsoft\VisualStudio

    Found 3 folders:

    C:\Users\Sarah\AppData\Local\Microsoft\VisualStudio\15.0
    C:\Users\Sarah\AppData\Local\Microsoft\VisualStudio\15.0_96fc35ea
    C:\Users\Sarah\AppData\Local\Microsoft\VisualStudio\15.0_96fc35eaExp

    I deleted all the cache files in those folders.

    Restart VS2017:

    When I restarted Visual Studio, I saw an update available and GitHub 2.3.1.30 installed. Obviously, the steps above did not remove GitHub from my VS2017 installation.

    Nevertheless, I pressed forward and attempted to install the GitHub update. For any of you reading this thread dumb enough to think that the update was successful, there is someone else's bridge that I can sell you.

    Thoughts?

    Failure Install Log File


    12/7/2017 8:04:27 AM - Package Microsoft.Windows.81SDK.Desktop.DirectX.Msi is not applicable. Skipping it due to the following reason(s): The current OS Version '10.0.16299.0' is not in the supported version range '[6.1,6.3]'.
    12/7/2017 8:04:27 AM - Package Microsoft.Windows.81SDK.Desktop.DirectX.Msi is not applicable. Skipping it due to the following reason(s): The current OS Version '10.0.16299.0' is not in the supported version range '[6.1,6.3]'.
    12/7/2017 8:04:27 AM - Package Microsoft.Net.4.7.FullRedist is not applicable. Skipping it due to the following reason(s): The current OS Version '10.0.16299.0' is not in the supported version range '[6.1.1,10.0.14393]'.
    12/7/2017 8:04:27 AM - Package Microsoft.VisualStudio.OfficeDeveloperTools.WindowsIdentityFoundation.Msu is not applicable. Skipping it due to the following reason(s): The current OS Version '10.0.16299.0' is not in the supported version range '(,6.2)'.
    12/7/2017 8:04:58 AM - Package 'GitHub.VisualStudio,version=2.3.6.391' failed to install. System.IO.IOException: The file 'C:\Program Files (x86)\Microsoft\Visual Studio\2017\Enterprise\Common7\IDE\Extensions\GitHub\GitHub\Akavache.dll' already exists.
       at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.InstallCore(String localPath, String installDir, InstallablePackage pkg)
       at Microsoft.VisualStudio.Setup.Installer.InstallerBase.InstallHelper(InstallData installData)
    12/7/2017 8:04:58 AM - Skipping cache of package 'Component.GitHub.VisualStudio,version=2.3.6.391' since the package or a parent package had a vital failure.
    12/7/2017 8:05:19 AM - Install Error : Microsoft.VisualStudio.Setup.PackageFailureException: Package 'GitHub.VisualStudio' failed to install
       at Microsoft.VisualStudio.Setup.InstallOperation.Run(CancellationToken token)
       at Microsoft.VisualStudio.Setup.Engine.RunOperation(InstallOperation installOperation, CancellationToken token, ExecuteAction action, ITelemetryOperation telemetryOperation)
       at Microsoft.VisualStudio.Setup.Engine.RunCoreOperation(InstallOperation coreOperation, ExecuteAction action, ITelemetryOperation telemetryOperation, CancellationToken token)
       at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
       at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
       at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, 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)
    Thursday, December 07, 2017 4:25 PM
  • Hi,

    Open a command prompt to the IDE folder (for enterprise it is as below) and manually run the VSIX installer with the GitHub ID from the error message

    C:\Program Files (x86)\Microsoft Visual Studio\2017\enterprise\Common7\IDE>VSIXInstaller.exe /uninstall:xxxxxxxxxxxxxxxxxxxxxx

    You get a UAC prompt then it uninstalls from visual studio.

    The extension writes to log files at %LocalAppData%\GitHubVisualStudio\extension.log and %LocalAppData%\Temp\extension.log

    https://developercommunity.visualstudio.com/content/problem/4279/setup-failed-githubvisualstudio-failed-to-uninstal.html

    Best regards,

    Joyce


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, December 12, 2017 1:46 AM