Skip to content
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

Couldn't find service of type GitHub.Api.ILoginManager #2450

Open
timi137137 opened this issue Nov 24, 2019 · 5 comments
Open

Couldn't find service of type GitHub.Api.ILoginManager #2450

timi137137 opened this issue Nov 24, 2019 · 5 comments

Comments

@timi137137
Copy link

@timi137137 timi137137 commented Nov 24, 2019

GitHub Extension for Visual Studio version: 2.10.8.8132
Visual Studio version: 2019(16.3.29519.87)

The Bug Used to be :
Login failed
Unable to retrieve your user info from the server. A proxy server might be interfering with the request.
FailedPhoto

Now The BUG is:

EROR [01] ServiceProviderExports    Couldn't find service of type GitHub.Api.ILoginManager
EROR [34] GitHubServiceProvider     Error loading GitHub.Services.IConnectionManager
System.InvalidOperationException: 由于存在死锁的高风险,不能从 AsyncPackage 派生类中的后台线程调用 GetService。应改为调用 GetServiceAsyn (无需在产生的“任务”对象上调用“结果”或“等待”)或在调用 GetService 之前使用 JoinableTaskFactory.SwitchToMainThreadAsync 方法切换到 UI 线程。
   在 Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)
   在 Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
   在 GitHub.VisualStudio.GitHubServiceProvider.TryGetService(Type serviceType)

Steps to reproduce the behavior:
There's no procedure, it just comes out of nowhere(He used to be normal!)
Open VS2019 ,Then Open Team resource manager

I expect him to get back to normal because this is all about my projects

The log file from AppData\Local\GitHubVisualStudio\extension.log:

2019-11-24 13:57:55.173 [35668] INFO [01] GitHubPackage             Initializing GitHub Extension v2.10.4.8063 in Microsoft Visual Studio 2019 (16.3.29519.87)
2019-11-24 13:57:56.180 [35668] EROR [01] ServiceProviderExports    Couldn't find service of type GitHub.Api.ILoginManager
2019-11-24 14:12:22.188 [17760] EROR [01] ServiceProviderExports    Couldn't find service of type GitHub.Api.ILoginManager
2019-11-24 14:12:25.060 [17760] INFO [01] GitHubPackage             Initializing GitHub Extension v2.10.8.8132 in Microsoft Visual Studio 2019 (16.3.29519.87)
2019-11-24 14:15:22.220 [17760] EROR [20] GitHubServiceProvider     Error loading GitHub.Services.IConnectionManager
System.InvalidOperationException: 由于存在死锁的高风险,不能从 AsyncPackage 派生类中的后台线程调用 GetService。应改为调用 GetServiceAsyn (无需在产生的“任务”对象上调用“结果”或“等待”)或在调用 GetService 之前使用 JoinableTaskFactory.SwitchToMainThreadAsync 方法切换到 UI 线程。
   在 Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)
   在 Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
   在 GitHub.VisualStudio.GitHubServiceProvider.TryGetService(Type serviceType)
2019-11-24 14:19:28.412 [35028] EROR [01] ServiceProviderExports    Couldn't find service of type GitHub.Api.ILoginManager
2019-11-24 14:23:54.865 [33388] EROR [01] ServiceProviderExports    Couldn't find service of type GitHub.Api.ILoginManager
2019-11-24 14:23:59.207 [33388] INFO [01] GitHubPackage             Initializing GitHub Extension v2.10.8.8132 in Microsoft Visual Studio 2019 (16.3.29519.87)
2019-11-24 14:26:54.830 [33388] EROR [34] GitHubServiceProvider     Error loading GitHub.Services.IConnectionManager
System.InvalidOperationException: 由于存在死锁的高风险,不能从 AsyncPackage 派生类中的后台线程调用 GetService。应改为调用 GetServiceAsyn (无需在产生的“任务”对象上调用“结果”或“等待”)或在调用 GetService 之前使用 JoinableTaskFactory.SwitchToMainThreadAsync 方法切换到 UI 线程。
   在 Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)
   在 Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
   在 GitHub.VisualStudio.GitHubServiceProvider.TryGetService(Type serviceType)
2019-11-24 14:38:38.103 [34412] EROR [01] ServiceProviderExports    Couldn't find service of type GitHub.Api.ILoginManager

@timi137137
Copy link
Author

@timi137137 timi137137 commented Nov 24, 2019

I've tried:
Completely reinstall the extension
Update Git and .NetFramework(now is 4.8)
Reinstallation VisualStudio2019
Find Google
Run "sfc" command

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Feb 29, 2020

Hi @timi137137,

I'm afraid I don't know what's going on. There has been a similar report here #2465.

Do you have any other versions of Visual Studio installed? Does the extension work on them?

@timi137137
Copy link
Author

@timi137137 timi137137 commented Mar 5, 2020

Hi @timi137137,

I'm afraid I don't know what's going on. There has been a similar report here #2465.

Do you have any other versions of Visual Studio installed? Does the extension work on them?

Yes, his symptoms are the same as mine。I reinstalled it three times, 2017,2018,2019. But it didn't work。Looking forward to repair

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Mar 29, 2020

I'd be very interested to know if this extension is working (in VS 2017):
https://marketplace.visualstudio.com/items?itemName=KristianAdrup.CommitFormatterforVisualStudio2015

It looks like MEF might not be working. 😢

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Oct 26, 2020

Hi @timi137137,

I think the issue you've been seeing might be this #2560. I've opened a PR that I hope will resolve the problem.

Could you try installing the artifact from this build:
https://github.com/github/VisualStudio/pull/2562/checks?check_run_id=1309274757

You can find it here:
https://github.com/github/VisualStudio/suites/1400504505/artifacts/23266202

After opening and installing the VSIX, can you let me know if it works any better? Any help confirming this fix would be much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.