lin-ycv / EverythingPowerToys

Everything search plugin for PowerToys Run
Eclipse Public License 2.0
2.34k stars 61 forks source link

[BUG] Error when click "open contains in folder" #7

Closed Doradx closed 2 years ago

Doradx commented 2 years ago

Describe the bug Sometimes, this plugin will report a bub and can't open the folder of the search result.

To Reproduce Steps to reproduce the behavior:

  1. search for a file of folder
  2. click "open contains in folder"
  3. just see the error

Expected behavior none folder will be open, and an error dialog appeared, just as shown below.

Screenshots If applicable, add screenshots to help explain your problem. image image

Logs (please upload or provide link to you log): Logs can be generated by right clicking the taskbar icon > Report Bug or be found at %localappdata%\Microsoft\PowerToys\PowerToys Run\Logs Version: 0.56.2.0 OS Version: Microsoft Windows NT 10.0.19044.0 IntPtr Length: 8 x64: True Date: 2022/3/18 18:30:20 Exception: System.MissingMethodException: Method not found: 'Boolean Wox.Infrastructure.Helper.OpenInShell(System.String, System.String, System.String, Boolean, Boolean)'. at Community.PowerToys.Run.Plugin.Everything.ContextMenuLoader.<>cDisplayClass6_0.b_0(ActionContext ) at PowerLauncher.ViewModel.ResultViewModel.<>cDisplayClass32_0.b_0(Object ) at MS.Internal.Command 2022-03-18.txt s.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Version (please provide the version of software you are using):

lin-ycv commented 2 years ago

I'm not sure why the it's unable to find the Helper.OpenInShell method, I've changed it to directly open the folder instead of relying on the method in Wox.

Please update to Everything0562_R1.zip, it should solve this issue.