Visitar URL original
GitHub Extension broken with VS 15.7.6 · Issue #1826 · github/VisualStudio · GitHub
Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

GitHub Extension broken with VS 15.7.6 #1826

Description

@jeffpapp
  • GitHub Extension for Visual Studio version: 2.5.4.3349
  • Visual Studio version: 15.7.6

What happened (with steps, logs and screenshots, if possible)

After updating to VS 15.7.6 I started getting an error every time I open VS

image

In the GitHub pane I see this error:

System.InvalidOperationException: Could not locate any instances of contract GitHub.Services.ITeamExplorerServiceHolder.
   at GitHub.VisualStudio.GitHubServiceProvider.GetService(Type serviceType) in C:\projects\visualstudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 147
   at GitHub.VisualStudio.GitHubServiceProvider.GetService[T]() in C:\projects\visualstudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 153
   at GitHub.VisualStudio.UI.GitHubPane.<InitializeAsync>d__12.MoveNext() in C:\projects\visualstudio\src\GitHub.VisualStudio\UI\GitHubPane.cs:line 98

Activity

  1. JeffreyAReyes commented on Aug 4, 2018

    @JeffreyAReyes

    I have this error too with VS 15.7.5

  2. jcansdale commented on Aug 7, 2018

    @jcansdale
    Collaborator

    @jeffpapp thanks fro the report. I have a PR with a possible workaround #1831.

    Could you try installing this version (simply open the .vsix file):
    https://ci.appveyor.com/api/buildjobs/9hh231frn2euc7be/artifacts/2.5.5.3553%2FGitHub.VisualStudio.vsix

    Please let me know if this improves things.

  3. jeffpapp commented on Aug 7, 2018

    @jeffpapp
    Author

    @jcansdale I installed that and it looks like it fixed it. The GitHub extension pane is working again and no error when opening VS.

    I should be good to keep that version installed and then I should pick up the next official update when it comes out right?

  4. jcansdale commented on Aug 7, 2018

    @jcansdale
    Collaborator

    Hi @jeffpapp,

    Any chance you could install the following build from #1839:
    https://ci.appveyor.com/api/buildjobs/i44gyu8roh16cm2n/artifacts/2.5.5.3618%2FGitHub.VisualStudio.vsix

    The build that you installed included two commits and I need to isolate which one actually fixed it! I'm pretty sure that it's the one included in this build, but I need to make sure. This is a strange issue that appears to bite very old and very new versions of Visual Studio 2017. My current theory is that Microsoft forgot to update their binding redirects in recent versions.

    Let me know how you get on. 😄

  5. jeffpapp commented on Aug 7, 2018

    @jeffpapp
    Author

    @jcansdale,

    I just installed GitHub.VisualStudio 2.5.5.3618 and everything is still looking good. Hopefully this helps you narrow down the issue. Let me know if you need me to test anything else.

    Thanks for your help on this!

  6. jcansdale commented on Aug 7, 2018

    @jcansdale
    Collaborator

    @jeffpapp,

    If you were up for following the instructions #1810 (comment), that would help us get to the bottom of what's going wrong. I'm still not sure what exactly is going on!

  7. jeffpapp commented on Aug 8, 2018

    @jeffpapp
    Author

    @jeffpapp,

    If you were up for following the instructions here, that would help us get to the bottom of what's going wrong:
    #1810 (comment)

    I'm still not sure what exactly is going on!

    Here's my output. Hope this helps

    ------ Test started: Assembly: ClassLibrary1.dll ------
    
    Microsoft.VisualStudio.Threading, Version=15.6.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    <assemblyIdentity name="Microsoft.VisualStudio.Threading" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
    <bindingRedirect oldVersion="12.0.0.0-15.6.0.0" newVersion="15.6.0.0"/>
    
    1 passed, 0 failed, 0 skipped, took 0.09 seconds (Ghost).
    
  8. jcansdale commented on Aug 8, 2018

    @jcansdale
    Collaborator

    @jeffpapp thanks for the output. Alas, still no smoking gun. 😕

    I'm hoping someone from Microsoft will be able to shed some light on what's going on.

  9. jcansdale commented on Aug 8, 2018

    @jcansdale
    Collaborator

    @jeffpapp,

    I've started having doubts about this fix and am wondering if simply reinstalling the extension is what "fixed" it. 😢

    To be sure, I'd need someone who was experiencing this issue to reinstall the original version and confirm whether or not the issue comes back.

    Any chance you could do the following:

    1. Uninstall GitHub for Visual Studio via Extensions and Updates...
    2. Close Visual Studio and allow the VSIX Installer to complete the uninstall
    3. Open the original VSIX and allow it to install
      https://github.com/github/VisualStudio/releases/download/v2.5.4.3349/GitHub.VisualStudio.vsix
    4. See if the package did not load correctly issue comes back

    I'm really hoping that it does, because if not I'm back to square one. 😨

    I know it's a pain uninstalling/reinstalling extensions and appreciate your patience with this!

  10. smbworkify commented on Aug 9, 2018

    @smbworkify

    @jcansdale, here ya go. This fixes the problem for me.

    Visual Studio Professional v15.7.6

    1. VS Installer : Uninstall Git & GitHub Extension for Visual Studio
    2. Launch Visual Studio
    3. Close Visual Studio
    4. VS Installer : Install Git & GitHub Extension for Visual Studio
    5. Launch Visual Studio
    6. Verified that Git works by opening, changing, and commiting
    7. Upgrade GitHub Extension for Visual Studio v2.2.0.10 => 2.5.4.3349
    8. Close Visual Studio
    9. Let VSIX Installer update GitHub Extension for Visual Studio
    10. Launch Visual Studio
    11. Verified that Git works by opening, changing, and commiting
  11. jcansdale commented on Aug 9, 2018

    @jcansdale
    Collaborator

    @smbworkify thanks for confirming this. That's good to know, if a bit depressing. 😢 I was hoping we had a fix and this wouldn't continue randomly biting us.

  12. smbworkify commented on Aug 9, 2018

    @smbworkify

    @jcansdale, It seems to me that the connection between VS v15.7.6 and Git is corrupted and not the GitHub Extension for Visual Studio. I cannot test this because my environment is working now. If you know someone using Git with VSTS, that would tell you for sure.

  13. jcansdale commented on Aug 9, 2018

    @jcansdale
    Collaborator

    @smbworkify just to double check, were you seeing a dialog similar to this when you reinstalled?

    image

  14. smbworkify commented on Aug 9, 2018

    @smbworkify

    I was getting that dialog box on Monday. Today, I ran through the steps I outlined previously. After which the GitHub Extension tools are working again and I am no longer receiving the dialog box.

  15. JavierCanon commented on Aug 20, 2018

    @JavierCanon

    Hello, same error with extension v2.5.4.3349 and visual studio 15.8.0

    <entry> <record>890</record> <time>2018/08/20 16:32:46.108</time> <type>Information</type> <source>VisualStudio</source> <description>Begin package load [GitHubPackage]</description> <guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid> </entry> <entry> <record>891</record> <time>2018/08/20 16:32:46.248</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [GitHubPackage]Source: &apos;System.ComponentModel.Composition&apos; Description: No exports were found that match the constraint: &#x000A;&#x0009;ContractName&#x0009;GitHub.Commands.IOpenFromUrlCommand&#x000A;&#x0009;RequiredTypeIdentity&#x0009;GitHub.Commands.IOpenFromUrlCommand&#x000D;&#x000A;</description> <guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid> <hr>80131500</hr> <errorinfo></errorinfo> </entry> <entry> <record>892</record> <time>2018/08/20 16:32:46.262</time> <type>Error</type> <source>VisualStudio</source> <description>End package load [GitHubPackage]</description> <guid>{C3D3DC68-C977-411F-B3E8-03B0DCCF7DFC}</guid> <hr>80131500</hr> <errorinfo></errorinfo> </entry>

    Upgrade to VS 15.8.1, same error, so i fix it deleting the cache files:
    %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\15.0_xxxxxxxx*.cache
    Open VS, close, and open again, and the extension is now showing in Team Explorer.

  16. added this to the 2.5.5 milestone on Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions