[W10 Pro x64 v1709,Visual Studio 2017 Community 15.6.0,AnkhSVN 2.7.12815.35086]
我在VS 2017中的AnkhSVN VS创业公司遇到了崩溃。我相信这才刚刚开始发生 - 我不记得最后一次打开IDE时发生了这种情况。卸载/重新安装扩展程序没有帮助。尝试打开Pending Changes窗口时出现错误信息:
AnkhSVN例外
发生内部错误:
对象引用未设置为对象的实例。
堆栈追踪:
System.NullReferenceException: Object reference not set to an instance of an object.
at Ankh.UI.PendingChanges.PendingChangesToolControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at Ankh.VSPackage.AnkhToolWindowPane.get_Window()
at Microsoft.VisualStudio.Shell.Package.ToolWindowCreationResult..ctor(WindowPane window, UInt32 flags)
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags, Object context, Guid persistenceGuid)
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, Object context)
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id)
at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
at Ankh.VSPackage.AnkhSvnPackage.ShowToolWindow(AnkhToolWindow toolWindow, Int32 id, Boolean create)
at Ankh.VSPackage.AnkhSvnPackage.ShowToolWindow(AnkhToolWindow window)
at Ankh.Commands.UI.ShowToolWindows.OnExecute(CommandEventArgs e)
at Ankh.Commands.CommandMapItem.OnExecute(CommandEventArgs e)
at Ankh.Commands.CommandMapper.Execute(AnkhCommand command, CommandEventArgs e)
故障排除/维修建议?
答案 0 :(得分:7)
这似乎是Visual Studio 2017 15.6版本中引入的一个问题 - 我在Visual Studio 2017 Professional v15.6中看到了相同的内容。
这里有一个未解决的问题:https://developercommunity.visualstudio.com/content/problem/207735/ankhsvn-2712815-failed-to-load-pending-changes-vie.html标记为正在调查中。我看到有58人正在关注这个问题,所以希望它会得到一些牵引力并很快得到解决。
答案 1 :(得分:3)
答案 2 :(得分:2)
我刚刚提交了修复程序。我认为您可以通过取消选中复选框来解决此问题,以便在选择位置的对话框中添加初始提交中的所有文件。 (这曾经是以前的默认值)
这个问题将在下一个版本中修复,我将在接下来的两周内尝试解决这个问题。我认为VS 2017应该自动更新AnkhSvn,除非你自己明确禁用它。
来源网址: - https://ankhsvn.open.collab.net/ds/viewMessage.do?dsForumId=582&dsMessageId=614598