kagami 发表于 2021-2-6 12:06:49

renho 发表于 2021-2-6 11:52
操什么错?

Exception
```json
{
"ClassName": "System.ArgumentException",
"Message": "类型“Forguncy.Model.FormulaReferObject”的对象无法转换为类型“System.String”。",
"Data": {
    "$type": "System.Collections.ListDictionaryInternal, mscorlib",
    "System.Object": null
},
"InnerException": null,
"HelpURL": null,
"StackTraceString": "   在 System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
   在 Forguncy.HelpForm.Commands.CustomCommandEditorViewModel.GetNewCommand()
   在 Forguncy.HelpForm.Commands.CustomCommandEditor.get_Command()
   在 Forguncy.HelpForm.Commands.CommandDialogV2ViewModel.CommitEditorValue()
   在 Forguncy.HelpForm.Commands.CommandDialogV2.ValidateValue()
   在 Forguncy.HelpForm.DialogWindowBase.OkAndCommit()
   在 MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   在 System.Windows.Controls.Primitives.ButtonBase.OnClick()
   在 System.Windows.Controls.Button.OnClick()
   在 System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs 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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   在 System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs 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.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   在 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 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)",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8
SetValue
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.ComponentModel.ReflectPropertyDescriptor
Void SetValue(System.Object, System.Object)",
"HResult": -2147024809,
"Source": "System",
"WatsonBuckets": null,
"ParamName": null
}
```

## EventLog
- 12:06:06 `MouseL`:Window:编辑服务端命令->Button:确定->确定
- 12:06:05 `MouseL`:Window:编辑服务端命令->Button:确定
- 12:06:04 `MouseL`:Window:编辑服务端命令->命令参数
- 12:06:04 `MouseL`:Window:编辑服务端命令->命令参数
- 12:06:03 `MouseL`:Window:编辑服务端命令
- 12:06:02 `MouseL`:Window:编辑服务端命令->编辑命令...
- 12:06:00 `MouseL`:Window:编辑服务端命令->命令
- 12:05:58 `TextInput`:type
- 12:05:56 `MouseL`:Window:编辑服务端命令->TextBox:
- 12:05:56 `MouseL`:Window:编辑服务端命令->增加参数
- 12:05:54 `MouseL`:Window:youdao.fgcc - 活字格->Tab:对象管理器->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemViewModel->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemPropertyViewModel
- 12:05:54 `MouseL`:Window:youdao.fgcc - 活字格->Tab:对象管理器->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemViewModel->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemPropertyViewModel
- 12:05:53 `MouseL`:Window:编辑服务端命令->Button:取消->取消
- 12:05:51 `MouseL`:Window:编辑服务端命令->Button:确定->确定
- 12:05:49 `MouseL`:Window:编辑服务端命令->Image:/FormulaSelector.png
- 12:05:42 `MouseL`:Window:youdao.fgcc - 活字格->Tab:对象管理器->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemViewModel->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemPropertyViewModel->命令
- 12:05:42 `MouseL`:Window:youdao.fgcc - 活字格->Tab:对象管理器->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemViewModel->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemPropertyViewModel->命令
- 12:05:41 `MouseL`:Window:youdao.fgcc - 活字格->Tab:对象管理器->MyTreeViewItem:Forguncy.Views.ServerCommandObjectExplorer.ItemViewModel
- 12:05:12 `MouseL`:Window:活字格

renho 发表于 2021-2-6 12:32:54

kagami 发表于 2021-2-6 12:06
Exception
```json
{


你类型填的什么?

kagami 发表于 2021-2-6 12:40:35

renho 发表于 2021-2-6 12:32
你类型填的什么?

活字格服务端命令里面加上的一个参数,基础类型

renho 发表于 2021-2-6 12:42:46

kagami 发表于 2021-2-6 12:40
活字格服务端命令里面加上的一个参数,基础类型

值填的什么?

renho 发表于 2021-2-6 12:43:11

renho 发表于 2021-2-6 12:42
值填的什么?

传的类型的值   等于什么

kagami 发表于 2021-2-6 12:47:16

renho 发表于 2021-2-6 12:43
传的类型的值   等于什么

在编辑器里面报的错

renho 发表于 2021-2-6 15:59:23

kagami 发表于 2021-2-6 12:47
在编辑器里面报的错

一会我确认下

renho 发表于 2021-2-6 15:59:25

kagami 发表于 2021-2-6 12:47
在编辑器里面报的错

一会我确认下

renho 发表于 2021-2-6 21:00:39

kagami 发表于 2021-2-6 12:47
在编辑器里面报的错

已修复类型报错问题。:victory:
演示文件也已更新

kagami 发表于 2021-2-6 21:24:27

renho 发表于 2021-2-6 21:00
已修复类型报错问题。
演示文件也已更新

给大神点个赞
页: 1 [2] 3
查看完整版本: 服务端插件--有道翻译(开源)