Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Can‘t Login My Github Account #2465

Open
QFJABC opened this issue Feb 26, 2020 · 22 comments
Open

Can‘t Login My Github Account #2465

QFJABC opened this issue Feb 26, 2020 · 22 comments

Comments

@QFJABC
Copy link

QFJABC commented Feb 26, 2020

Hello, I found that I could not log in when using this extension. There is no response to clicking the login button after entering the user name and password when opening the login dialog box. So I tried to log in with a browser, but I didn't respond after I clicked. Visual studio is the latest version 16.4.5, the extended version is 2.11.36.32419, and the system version is Windows 10 1909. I am Chinese, so my English is not very good, so language is translated, please forgive me.
extension.log

@jcansdale
Copy link
Collaborator

Hello,

I wonder if this is being caused my a corrupted MEF cache. 🤔

Could you try installing the following extension:
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ClearMEFComponentCache

Then go to Tools > Clean MEF Component Cache... and select Yes to continue. This will reset Visual Studio's component cache and might resolve the issue.

Please let me know if this works!

This issue appears to be the same as #2450.

@QFJABC
Copy link
Author

QFJABC commented Feb 27, 2020

Sorry, that's didn't work. But thank you so much!

@jcansdale
Copy link
Collaborator

@QFJABC,

I'm sorry that didn't fix it.

I'm still thinking this might me a MEF issue.

Could you click on Show MEF Errors on the Tools menu and send me the output?

image

Hopefully there will be a clue in the logs!

@QFJABC
Copy link
Author

QFJABC commented Feb 28, 2020

Here are outputs, please have a look, Thank you so much!
Outputs.zip

Outputs:
----- Catalog construction errors -----
Error #1
Microsoft.VisualStudio.Composition.PartDiscoveryException: 扫描类型"Microsoft.Cosmos.ScopeStudio.VsExtension.EditorExtension.ExpandColumnSmartTaggerProvider"时出错。 ---> System.TypeLoadException: 未能从程序集“Microsoft.VisualStudio.Language.Intellisense, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”中加载类型“Microsoft.VisualStudio.Language.Intellisense.SmartTag”。
   在 System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
   在 System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
   在 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
   在 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
   在 System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
   在 Microsoft.VisualStudio.Composition.AttributeServices.GetAttributes[T](ICustomAttributeProvider attributeProvider)
   在 Microsoft.VisualStudio.Composition.AttributedPartDiscoveryV1.GetExportMetadata(MemberInfo member)
   在 Microsoft.VisualStudio.Composition.AttributedPartDiscoveryV1.CreatePart(Type partType, Boolean typeExplicitlyRequested)
   在 Microsoft.VisualStudio.Composition.PartDiscovery.CombinedPartDiscovery.CreatePart(Type partType, Boolean typeExplicitlyRequested)
   在 Microsoft.VisualStudio.Composition.PartDiscovery.<>c__DisplayClass31_0.<CreateDiscoveryBlockChain>b__0(Type type)

@jcansdale
Copy link
Collaborator

I was wondering if you see the same error as here #2458?

@QFJABC
Copy link
Author

QFJABC commented Feb 29, 2020

No, here is the picture.
Error

@jcansdale
Copy link
Collaborator

jcansdale commented Mar 1, 2020

@QFJABC,

I see that you're using the latest version of Visual Studio and the GitHub extension. I'm going to update Visual Studio and make sure that it's working for me!

There could also be some other extension that is making happen. What other extensions do you have installed?

@jcansdale
Copy link
Collaborator

@QFJABC,

I've just tried Visual Studio 16.4.5 and the extension seems to be working for me. 😕

Parts of the GitHub extension are now part of Visual Studio 2019. The will still be available after you've uninstalled the extension.

Could you try the following:

  1. Uninstall the extension by doing the following form the Visual Studio command prompt:
vsixinstaller /uninstall:c3d3dc68-c977-411f-b3e8-03b0dccf7dfc
  1. Open Visual Studio
  2. Click on Clone or check out code
  3. Click on the GitHub button
  4. See if you can sign on using the dialog

image

Please let me know if this works!

@QFJABC
Copy link
Author

QFJABC commented Mar 2, 2020

Click the GitHub button was no response when I after did that.
Errors

@jcansdale
Copy link
Collaborator

@QFJABC ,

I'm surprised this isn't working!

I've created a project for running some tests. Could you try the following:

  1. Install the TestDriven.NET extension. You can find it here:
    https://marketplace.visualstudio.com/items?itemName=JamieCansdale.TestDrivenNet
  2. Clone the following repository:
    https://github.com/jcansdale/CheckGitHubVisualStudioMEF
  3. Open the solution and find this method:
    https://github.com/jcansdale/CheckGitHubVisualStudioMEF/blob/master/CheckGitHubVisualStudioMEF/CompositionServicesTest.cs#L13-L16
  4. Right-click inside the method and Test With > In-proc (VS SDK)

Please let me know what appears on the output pane. Do you see an exception or does it simply output GitHub.VisualStudio.CompositionServices?

image

Thanks!

@QFJABC
Copy link
Author

QFJABC commented Mar 3, 2020

It show me 'Couldn't find test targets.'

@QFJABC
Copy link
Author

QFJABC commented Mar 3, 2020

Errors

@jcansdale
Copy link
Collaborator

Thanks for trying this!

Could you make sure you're inside the Test method when you right-click?

@QFJABC
Copy link
Author

QFJABC commented Mar 3, 2020

Yes, I am sure.

@jcansdale
Copy link
Collaborator

Oh dear, it looks like a lot isn't working!

Could you try installing Visual Studio Preview and see if that works?
https://visualstudio.microsoft.com/vs/preview/

@QFJABC
Copy link
Author

QFJABC commented Mar 4, 2020

Sorry, is there no other solution? It's not convenient for me to join the preview version, and I have this problem from the previous version. No matter the update is used, it's still the same.

@jcansdale
Copy link
Collaborator

Sorry, is there no other solution? It's not convenient for me to join the preview version, and I have this problem from the previous version. No matter the update is used, it's still the same.

Let's continue trying to find out what is failing exactly...

Could you try running the steps from here:
#2465 (comment)

With DebugView running in the background:
https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

If you could send me the logs from there, it might show why TestDriven.NET is also failing.

@QFJABC
Copy link
Author

QFJABC commented Mar 5, 2020

Here are my logs.
Error.LOG

@QFJABC
Copy link
Author

QFJABC commented Mar 25, 2020

Updated VisualStudio to 16.5.1 today and it still not working.

@Splendoid
Copy link

I am also having this problem :(

@jcansdale
Copy link
Collaborator

@Splendoid have you noticed any other extensions not working?

I'd be interested to know if you can run any methods using this:
https://marketplace.visualstudio.com/items?itemName=JamieCansdale.TestDrivenNet

Simply create a void HelloWorld() method, right click inside it and Run Test(s). This is a much simpler extension than GitHub for Visual Studio and should work! If it doesn't, we'll know something is very broken.

@jcansdale
Copy link
Collaborator

Hi @QFJABC (and @Splendoid),

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants