【异常报告】 1.24.31 【2个】已添加了具有相同键的项 与 No undo group should be open at this point

异常报告 · 1271 次浏览
HumbleCoder 创建于 2021-06-20 21:09

复现视频与出问题的子程序在该链接

是从28版本更新到31的,31版本仍有此bug

ArgumentException
   在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   在 Quicker.View.Controls.CodeEditor.QjLsHUCI06K()
   在 Quicker.View.Controls.CodeEditor.DTLsHFOUdAV()
   在 Quicker.View.Controls.CodeEditor.WVbsHw8BUVZ(Object  , EventArgs  )
   在 ICSharpCode.AvalonEdit.TextEditor.OnTextChanged(EventArgs e)
   在 ICSharpCode.AvalonEdit.TextEditor.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   在 System.Windows.WeakEventManager.ListenerList.DeliverEvent(Listener& listener, Object sender, EventArgs args, Type managerType)
   在 System.Windows.WeakEventManager.ListenerList.DeliverEvent(Object sender, EventArgs args, Type managerType)
   在 System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   在 ICSharpCode.AvalonEdit.Document.TextDocument.FireChangeEvents()
   在 ICSharpCode.AvalonEdit.Document.TextDocument.EndUpdate()
   在 ICSharpCode.AvalonEdit.Document.TextDocument.Replace(Int32 offset, Int32 length, ITextSource text, OffsetChangeMap offsetChangeMap)
   在 ICSharpCode.AvalonEdit.Document.TextDocument.set_Text(String value)
   在 ICSharpCode.AvalonEdit.TextEditor.set_Text(String value)
   在 Quicker.View.X.Controls.ParamEditors.VarAndValueParamEditor2.mtHsFaWH6kx()
   在 Quicker.View.X.Controls.ParamEditors.VarAndValueParamEditor2.TextAreaOnPreviewKeyDown(Object sender, KeyEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   在 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   在 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   在 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   在 System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

InvalidOperationException
   在 ICSharpCode.AvalonEdit.Document.UndoStack.ThrowIfUndoGroupOpen()
   在 ICSharpCode.AvalonEdit.Document.UndoStack.ClearAll()
   在 Quicker.View.X.Controls.ParamEditors.VarAndValueParamEditor2.mtHsFaWH6kx()
   在 Quicker.View.X.Controls.ParamEditors.VarAndValueParamEditor2.TextAreaOnPreviewKeyDown(Object sender, KeyEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   在 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   在 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   在 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   在 System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

HumbleCoder 最后更新于 2021/6/20

回复内容
CL 2021-06-20 21:16
#1

 试试去掉这个变量名看看是否还出错。 这个和动作内置变量名冲突了。

HumbleCoder 2021-06-20 21:18 :

还真是,改了就行了。以前是可以这样用的,像下面的那个if就能选择那个变量,看来是更新了什么

CL 回复 HumbleCoder 2021-06-20 21:19 :

嗯,加了个错误捕捉。已发送兑换码。

HumbleCoder 回复 CL 2021-06-20 21:24 :

感谢老大!😁

回复主贴