DIaLOGIKa-GmbH / kicad-coil-creator

Generates PCB coils for KiCad
GNU Affero General Public License v3.0
10 stars 2 forks source link

Bug: Auto-Paste of Coil into PCB Editor does not work on most recent MacOS #14

Open Johnr24 opened 1 month ago

Johnr24 commented 1 month ago

I'm on macos most recent version of kicad, I don't get any error messages or anything, just get taken out of the dialogue and back into kicad

diajowe commented 1 month ago

Hey there, sorry to hear that you're having trouble using our tool. Can you try the following:

  1. After the dialogue closes and you're back to PCB Editor, select the "Select item(s)" tool on the right hand side (Cursor symbol)
  2. Click anywhere in the main window (where you'd edit your PCB)
  3. Try doing Ctrl-V (Cmd-V) manually

There's a good chance the python script generated the coil but just failed to auto-paste from clipboard.

Johnr24 commented 1 month ago

Thank you that's solved it!

diajowe commented 1 month ago

Sweet, the paste-mechanism is a bit shaky since there is no direct way to tell KiCAD to place a coil in the PCB editor (which is why we are looking forward to hopefully getting a proper Plugin interface soon). Would you be so kind and test for me if it also fails to auto-paste when the "Select item(s)" tool was selected as active tool, before opening the Plugin dialogue? I'll leave the issue open for now so that Tim can check on his Mac, once he's available again!

TimGoll commented 1 month ago

I guess I have to set up a dev setup on my mac soon

Johnr24 commented 1 month ago

Sweet, the paste-mechanism is a bit shaky since there is no direct way to tell KiCAD to place a coil in the PCB editor (which is why we are looking forward to hopefully getting a proper Plugin interface soon). Would you be so kind and test for me if it also fails to auto-paste when the "Select item(s)" tool was selected as active tool, before opening the Plugin dialogue? I'll leave the issue open for now so that Tim can check on his Mac, once he's available again!

Hi, Yes, this fails when select items is enabled/active before opening the plugin!

TimGoll commented 1 month ago

Hi, Yes, this fails when select items is enabled/active before opening the plugin!

What happens if you have any tool selected that is not the "select item(s)" tool and you hit the escape key?

TimGoll commented 1 month ago

Also, could you please attach your log file? You find it when navigating to "tools" -> "external plugins" -> "open plugin directory". Then open the coilgenerator folder. There should be a "dynamic" folder, probably in the "plugins" folder. Select the "coilgenerator.log" file to attach to this issue, thank you

TimGoll commented 3 weeks ago

I tested it myself and got this log. I think the issue is that on mac you have to hit "command+V" to paste, on linux and windows it is "control+V".

So maybe we have to trigger a key event for wx.WXK_COMMAND

coilgenerator.log