windows - git 扩展在启动时崩溃
问题描述
使用 git extensions 2.51.01,我有时会收到这个错误,当我启动 gitExtensions 时,它会立即出错:
已存在具有相同键的条目。
即使我卸载并重新安装。知道是什么原因造成的吗?这是堆栈跟踪:
在 System.ThrowHelper.ThrowArgumentException(ExceptionResource 资源) 在 System.Collections.Generic.TreeSet
1.AddIfNotPresent(T item) at System.Collections.Generic.SortedDictionary
2.Add(TKey key, TValue value) 在 GitUI.GitExtensionsForm.FindWindowScreen(Point location) 在 GitUI.GitExtensionsForm.RestorePosition(String name) 在 GitUI .GitExtensionsForm.OnLoad(EventArgs e) 在 System.Windows.Forms.Form.OnCreateControl() 在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl() 在 System.Windows .Forms.Control.WmShowWindow(Message& m) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.Form.WmShowWindow(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
注意:我删除了这个文件,它似乎已经解决了这个问题:C:\Users\dlwiii\AppData\Local\GitExtensions\WindowPositions.xml
但还不确定这是否是真正的解决方案。
解决方案
你可以尝试的事情:
- 更新到作为错误修复版本的最后一个版本
- 清理“最近的存储库”列表
- 在此处报告问题:https ://github.com/gitextensions/gitextensions/issues