kando-menu / kando

🥧 The Cross-Platform Pie Menu.
https://ko-fi.com/post/Kando-1-0-0-released-G2G5Z1DOS
Other
1.19k stars 26 forks source link

JavaScript error occured in the main process. Uncaught Exception: undefined: undefined #395

Closed denis-roy closed 2 months ago

denis-roy commented 2 months ago

PROBLEM

Clicking on a menu item, the menu item's application launch as expected but I get this error message. I can't click on the "Ok" button as mouse clicks don't seems to be registered on the desktop area (they are on the Windows taskbar but not anywhere else above) on the primary monitor of my multi-monitor setup. The mouse clicks are fine on my other monitors and keyboard is still responsive so I can open the task manager and kill Kando from other monitors thus restoring normal desktop usage.

20240421T174859

CONTEXT

HOW TO REPLICATE

Can't propose any exact procedure at the moment but here is vaguely what I was doing:

I ran out of time while trying to backtrack to a "safe menu state" but I decided to report the error and will try to troubleshoot it a bit more later on and report back!

EXPECTED BEHAVIOR

denis-roy commented 2 months ago

I just thought "screw backtracking" and simply flushed my kando's %APPDATA% to have kando recreate the default menu, then put every items in the trash and used "+ Menu Item" to add a single "Launch application" item. I then opened the menus.json file to add "explorer.exe" as the command and got the above error.

Here is the menus.json looks like:

{
  "menus": [
    {
      "nodes": {
        "type": "submenu",
        "name": "Prototype Menu",
        "icon": "open_with",
        "iconTheme": "material-symbols-rounded",
        "children": [
          {
            "type": "command",
            "data": {
              "command": "explorer.exe"
            },
            "name": "Launch Application",
            "icon": "terminal",
            "iconTheme": "material-symbols-rounded"
          }
        ]
      },
      "shortcut": "Control+Space",
      "centered": false
    }
  ],
  "stash": []
}
Schneegans commented 2 months ago

Thank you very much for the report! You can read my response in #394.