【问题标题】:AnkhSVN crash in Visual Studio 2017Visual Studio 2017 中的 AnkhSVN 崩溃
【发布时间】:2018-03-07 15:58:46
【问题描述】:

[W10 Pro x64 v1709,Visual Studio 2017 社区 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)

故障排除/修复建议?

【问题讨论】:

  • 尝试昨晚/每日构建:ankhsvn.open.collab.net/daily/2.7.x,如果仍未修复,请创建错误条目:ankhsvn.net/issues
  • @magicandre1981 我没有看到任何与 VS17 兼容的构建(VSIX 安装程序)
  • @magicandre1981 MS 已经承认这是他们的问题,将会有一个 VS 更新来修复它。
  • 谢谢。我使用 VisualSVN,这里没有问题。所以作为一种解决方法改变它

标签: exception visual-studio-2017 ankhsvn


【解决方案1】:

这似乎是 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 人关注这个问题,所以希望它会得到一些关注并很快得到解决。

【讨论】:

  • 问题更新:微软已经承认了这个问题,并表示 Visual Studio 将在“即将发布的版本中”得到修复。
【解决方案2】:
【解决方案3】:

我刚刚进行了修复。我认为您可以通过取消选中复选框以在您选择位置的对话框中的初始提交中添加所有文件来解决此问题。 (这曾经是前一段时间的默认设置)

这个问题将在下一个版本中得到解决,我会在接下来的两周内尝试解决一个问题。我认为 VS 2017 应该会自动更新 AnkhSvn,除非你自己明确禁用它。

来源网址:-https://ankhsvn.open.collab.net/ds/viewMessage.do?dsForumId=582&dsMessageId=614598

【讨论】:

    猜你喜欢
    • 2018-06-05
    • 1970-01-01
    • 2017-10-15
    • 1970-01-01
    • 1970-01-01
    • 2018-09-16
    • 1970-01-01
    • 1970-01-01
    • 2021-08-15
    相关资源
    最近更新 更多