-
Notifications
You must be signed in to change notification settings - Fork 62
Replicate layout fails to find pcbnew window (list index out of range) #130
Comments
yeah, that is the case. It is really difficult to make this part of the code cross platform, cross distribution and robust. I don't have and issue with 5.1.10 on Kubuntu 20.4. Thanks for reporting it. I'll look into this, but currently I really don't have the time. |
yeah! most definitely related to lib versions, I downgraded wxPython to 4.0.7.2-5 and now it works (I wasn't able to sort anything yet, but it doesn't fail. |
Thanks for reporting back. I've modified that part of code a bit and I've added additional debugging code, which should add some info to the log file. If you can, pleas run it on the setup that you have now and on the setup that was known to fail and send me back the |
where will be it created? (the log file) like people commented here: #117 |
@jano2358
lines in which file. different than what? I don't follow, so you'll have to be a bit more verbose |
sorry if I wasn't clear enough. |
If I add two empty hierarchical sheets to my schematic I can run the plugin. |
I had a look at this today since it failed for me too. Since 6.0 is officially released now I thought I make my new project with it, but now your great script does not work. (it did in 5.x). It seems to me that Kicad has broken the filter of the title where it says "pcbnew". It now says "schematic editor" in English. But this is now a localized string. In German it says "Leiterplatteneditor". I could not test it as a fast proof of concept, since I'm not familiar how to get a plugin compiled so that Kicad accepts it. This was my idea for fixing it: |
Thanks for reporting, I was waiting for somebody to report it. Even with pre-6.0 the solution was not proper as it depended on language. For the time being, I can only ask you to replace the code with If the fix does not work, you'll have to wait a couple of weeks until I release V6 compatible plugins (Archive3D models and PlaceFootprints are already released) |
Thanks for the fast reply. However, it now fails at line 334 with:
Seems like there was changed something else under the hood. :( |
Are you on the version from the 5.99_test branch? |
No, it's the release version: Application: KiCad (64-bit) Version: (6.0.1), release build Libraries: Platform: Windows 10 (build 19043), 64-bit edition, 64 bit, Little endian, wxMSW Build Info: Build settings: |
Sorry for ambiguous quastion. So I'll be more verbose. Which version of the plugin are you using. The one from the master branch, or the one from the 5.99_test branch in the plugin github repository? From the error I assume you are using the version from the master branch. This version supports KiCad 5.1.x. Plugin from 5.99_test branch should work with Kicad 6.0.x |
I downloaded this version: https://codeload.github.com/MitjaNemec/Kicad_action_plugins/zip/refs/heads/master |
I just tried with the "test" version linked above but this just throws a non-descriptive "list out of range" error. |
Hi, I would love to help out here. However, I cannot figure out how to debug a script, how to run it on my board from the Python console (or external editor). Do you know of any resource that explains how to do this? I wasted some time now to find a tutorial or some step by step guide but had no luck. :( |
Thanks for the effort. It seems that the script is broken. So you'll have to wait until I release a V6 version of it. I am currently working on it, and I don't see any sense of fixing a thing that will be replaced in a couple of weeks. As for debugging. The first thing would be to take a full error message, not only a As for debugging, specifically for my plugins, I've split the code to GUI code and actual bussines logic. And the bussines logic can be debugged via IDE (PyCharm, VSCode). And self testing code is already included. But this might be too much for a common user |
To me it looks a bit like that on Windows there are mixed path characters in use "/" and "\"? |
No it has nothing to do with file paths |
Had to revert my original comment... |
Hi, today I had another dig into this.
What I found was that these are footprints placed on the board that are not in the schematics like NPTH for mouse-bites. I would think these are safe to be excluded from the list.
However, I have two hierarchical sheets that are both twice used in the design. For the components of the second one it is not recognized that there is a target sheet. |
Again, congratulations for finding this out and for fixing it. |
Yeah it was reported in #145 |
I believe it's searching for the pcbnew window, and cannot find it, when it is in fact open. Running Arch Linux, KiCAD 5.1.10, GNOME 40, latest commit on master branch.
The text was updated successfully, but these errors were encountered: