MitjaNemec / Kicad_action_plugins

Kicad action plugins
413 stars 62 forks source link

swap_pins - 'More or less than 2 pads selected' #103

Closed 05CARM closed 3 years ago

05CARM commented 3 years ago

"More or less than two pads selected. Please select exactly two pads and run the script again." This happens every time rather than occasionally. I have tried it on both my schematic and the 'swap_pins_test.kicad_pcb' test project. It fails reliably on both.

I have selected exactly two pads. They are connected to global labels (at both ends) via short wires on two different sheets. The symbols each have multiple units.

I hope I am reporting this issue in the approved manner.

O

Application: Pcbnew Version: 5.1.6-c6e7f7d~87~ubuntu18.04.1, release build Libraries: wxWidgets 3.0.4 libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3 Platform: Linux 4.15.0-117-generic x86_64, 64 bit, Little endian, wxGTK Build Info: wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.22 Boost: 1.65.1 OpenCASCADE Community Edition: 6.9.1 Curl: 7.58.0 Compiler: GCC 7.5.0 with C++ ABI 1011

Build settings: USE_WX_GRAPHICS_CONTEXT=OFF USE_WX_OVERLAY=ON KICAD_SCRIPTING=ON KICAD_SCRIPTING_MODULES=ON KICAD_SCRIPTING_PYTHON3=ON KICAD_SCRIPTING_WXPYTHON=ON KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON KICAD_SCRIPTING_ACTION_MENU=ON BUILD_GITHUB_PLUGIN=ON KICAD_USE_OCE=ON KICAD_USE_OCC=OFF KICAD_SPICE=ON

05CARM commented 3 years ago

My mistake. Sorry. I was selecting pads with control rather than shift. It is fine.