A janela de alterações pendentes do AnkhSVN lança exceção no Visual Studio 2019

A janela de alterações pendentes do AnkhSVN lança exceção no Visual Studio 2019

Estou usando o AnkhSVN como plug-in de controle de origem. Ao abrir a janela Alterações Pendentes no Visual Studio 2019 ocorre uma exceção.

Ocorreu um erro interno:
Referência de objeto não definida para uma instância de um objeto.
System.NullReferenceException: referência de objeto não definida para uma instância de um objeto.
   em Ankh.VS.Selection.CommandState.LoadThemeData()
   em Ankh.VS.Selection.CommandState.get_ThemeDefined()
   em Ankh.UI.PendingChanges.Commits.PendingCommitItem.RefreshText (contexto IAnkhServiceProvider)
   em Ankh.UI.PendingChanges.Commits.PendingCommitItem..ctor (visualização PendingCommitsView, alteração PendingChange)
   em Ankh.UI.PendingChanges.Commits.PendingCommitItemCollection.GetWrapItem(PendingChange interno)
   em Ankh.Collections.KeyedWrapNotifyCollection`3.WrapInnerKeyedCollection.ResetCollection()
   em Ankh.Collections.KeyedWrapNotifyCollection`3..ctor (coleção IKeyedNotifyCollection`2, contexto do objeto)
   em Ankh.UI.PendingChanges.Commits.PendingCommitsView.Ankh.UI.IPendingChangeUI.set_Items (valor IKeyedNotifyCollection`2)
   em Ankh.UI.PendingChanges.PendingCommitsPage.HookList()
   em Ankh.UI.PendingChanges.PendingCommitsPage.OnLoad(EventArgs e)
   em System.Windows.Forms.UserControl.OnCreateControl()
   em System.Windows.Forms.Control.CreateControl (Boolean fIgnoreVisible)
   em System.Windows.Forms.Control.CreateControl()
   em System.Windows.Forms.Control.SetVisibleCore (valor booleano)
   em System.Windows.Forms.Control.set_Visible (valor booleano)
   em Ankh.UI.PendingChanges.PendingChangesToolControl.ShowPanel (página PendingChangesPage, seleção booleana)
   em Ankh.UI.PendingChanges.PendingChangesToolControl.OnLoad(EventArgs e)
   em System.Windows.Forms.UserControl.OnCreateControl()
   em System.Windows.Forms.Control.CreateControl (Boolean fIgnoreVisible)
   em System.Windows.Forms.Control.CreateControl()
   em Ankh.VSPackage.AnkhToolWindowPane.get_Window()
   em Microsoft.VisualStudio.Shell.WindowPane.Microsoft.VisualStudio.Shell.Interop.IVsUIElementPane.CreateUIElementPane(Object& uiElement)
   em Microsoft.VisualStudio.Platform.WindowManagement.UIElementDocumentObject.Init (Boolean initSize)
   em Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.InitializeDocumentObject(Object punkView)
   em Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane (FrameMoniker frameMoniker, Boolean isDocument, String lpstrMkDoc, UInt32 eCreateWindowFlags, Object punkView, Object punkData, IServiceProvider pServiceProvider, IVsUIHierarchy pUIHierarchy, UInt32 vsid, rguidCmdUI, pai ViewGroup, IVsWindowFrame e ppWindowFrame)
   em Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane (String pszName, Int32 fDockViewOn, Int32 fDocument, String lpstrMkDoc, UInt32 eCreateWindowFlags, UInt32 dwToolWinId, Object punkView, Object punkData, IServiceProvider pServiceProvider, erarquia pUIHierarchy, UInt32 vsid, Int32& pfDefaultPosition, Guid& rguidCmdUI, IVsWindowFrame& ppWindowFrame)
   em System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode, IntPtr errorInfo)
   em Microsoft.VisualStudio.Shell.Package.CreateFrameForToolWindow (Resultado ToolWindowCreationResult, ID Int32, Guid persistenceGuid)
   em Microsoft.VisualStudio.Shell.Package.CreateToolWindow (tipo toolWindowType, ID Int32, sinalizadores UInt32, contexto do objeto, Guid persistenceGuid)
   em Microsoft.VisualStudio.Shell.Package.CreateToolWindow (tipo toolWindowType, ID Int32, contexto do objeto)
   em Microsoft.VisualStudio.Shell.Package.CreateToolWindow (tipo toolWindowType, ID Int32)
   em Microsoft.VisualStudio.Shell.Package.FindToolWindow (tipo toolWindowType, ID Int32, criação booleana, ferramenta ProvideToolWindowAttribute)
   em Ankh.VSPackage.AnkhSvnPackage.ShowToolWindow (AnkhToolWindow toolWindow, Int32 id, criação booleana)
   em Ankh.VSPackage.AnkhSvnPackage.ShowToolWindow (janela AnkhToolWindow)
   em Ankh.Commands.UI.ShowToolWindows.OnExecute(CommandEventArgs e)
   em Ankh.Commands.CommandMapItem.OnExecute(CommandEventArgs e)
   em Ankh.Commands.CommandMapper.Execute (comando AnkhCommand, CommandEventArgs e)

como isso pode ser resolvido?

Responder1

Consegui corrigir isso atualizando uma opção no Visual Studio...

Ferramentas->Opções->Extensões-> e marque a caixa rotulada: Permitir carregamento automático síncrono de extensões (não recomendado. Requer reinicialização do Microsoft Visual Studio.)

Encontrei as informações necessárias nesta postagem do blog:Atualizações no carregamento automático síncrono de extensões no Visual Studio 2019.

informação relacionada