jessebarocio / Wox.Plugin.Runner

A plugin that allows you to create simple command shortcuts in Wox.
41 stars 24 forks source link

无法使用Runner #8

Closed taolive closed 8 years ago

taolive commented 8 years ago

Please open new issue in: https://github.com/Wox-launcher/Wox/issues/new

  1. upload log file: C:\Users\tao\AppData\Roaming\Wox\Logs\1.3.67\2016-06-03.log
  2. copy below exception message Wox version: 1.3.67 OS Version: Microsoft Windows NT 10.0.14352.0 Date: 06/03/2016 08:37:58 Exception: Wox.Plugin.Runner System.MissingMethodException 找不到方法:“Void Wox.Plugin.IPublicAPI.ReloadPlugins()”。 在 Wox.Plugin.Runner.Settings.RunnerSettingsViewModel.b__5()

日志: 2016-06-03 08:39:43.2949|ERROR|Wox.App+<>c.b13_0|First Chance Exception: 2016-06-03 08:39:43.2949|ERROR|System.RuntimeMethodHandle.InvokeMethod|调用的目标发生了异常。 2016-06-03 08:39:43.2949|ERROR|System.RuntimeMethodHandle.InvokeMethod| 在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) 2016-06-03 08:39:43.2949|ERROR|System.RuntimeMethodHandle.InvokeMethod|找不到方法:“Void Wox.Plugin.IPublicAPI.ReloadPlugins()”。 2016-06-03 08:39:43.2949|ERROR|System.RuntimeMethodHandle.InvokeMethod| 在 Wox.Plugin.Runner.Settings.RunnerSettingsViewModel.b5() 2016-06-03 08:39:43.2949|FATAL|Wox.Helper.ErrorReporting.Report|

Exception

System.MissingMethodException: 找不到方法:“Void Wox.Plugin.IPublicAPI.ReloadPlugins()”。
   Source: Wox.Plugin.Runner
   TargetAssembly: Wox.Plugin.Runner, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null
   TargetModule: Wox.Plugin.Runner.dll
   TargetSite: Void <get_SaveChanges>b__5()
   在 Wox.Plugin.Runner.Settings.RunnerSettingsViewModel.<get_SaveChanges>b__5()

System.Reflection.TargetInvocationException: 调用的目标发生了异常。
   Source: mscorlib
   TargetAssembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
   TargetModule: CommonLanguageRuntimeLibrary
   TargetSite: System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   在 GalaSoft.MvvmLight.Helpers.WeakAction.Execute()
   在 GalaSoft.MvvmLight.Command.RelayCommand.Execute(Object parameter)
   在 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)

Environment

jessebarocio commented 8 years ago

This is caused by the Wox plugin API changing. Looks like they haven't pushed an updated NuGet package. I will have a fix shortly.

jessebarocio commented 8 years ago

@taolive Please update to the latest version of the plugin by running the following command:

wpm install Wox.Plugin.Runner

This will fix your problem.