GoogleCloudPlatform / google-cloud-visualstudio

Google Cloud Tools for Visual Studio
https://cloud.google.com/tools/visual-studio/docs/
Apache License 2.0
88 stars 51 forks source link

Error Showing Google Cloud Repositories In Vs2017 and 2019 #1096

Closed juanfer007 closed 5 years ago

juanfer007 commented 5 years ago

Google Cloud repositories noth showing list in Team Explorer. I'm logged correctly, but it shows the next exception:

Error persists in VS2017 and vs2019

System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet. à GoogleCloudExtension.Analytics.AnalyticsEvent.GetMetadataFromParams(String[] args) à GoogleCloudExtension.CloudSourceRepositories.CsrSectionControlViewModel.GoogleCloudExtension.TeamExplorerExtension.ISectionViewModel.Initialize(ITeamExplorerUtils teamExplorerService) à GoogleCloudExtension.TeamExplorerExtension.Section.Microsoft.TeamFoundation.Controls.ITeamExplorerSection.Initialize(Object sender, SectionInitializeEventArgs e) à Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerSectionHost.Initialize(Object context)

image

quoctruong commented 5 years ago

@meteatamel It seems like on this line, we are trying to report analytics event but GoogleCloudExtensionPackage.Instance was not yet initialized (so it was null).

meteatamel commented 5 years ago

What are the repro steps to see this error? It happens all the time?

quoctruong commented 5 years ago

@meteatamel Simply open Team Explorer with the extension and it will show the error.

meteatamel commented 5 years ago

This should be fixed now in the latest release 2.0.4. Please try out and let us know if you encounter other issues.