On 5 Feb 2018, at 22:17, Wayne Stambaugh <stambaughw@xxxxxxxxx <mailto:stambaughw@xxxxxxxxx>> wrote:
On 02/05/2018 05:08 PM, Jeff Young wrote:
Hi Wayne,
Do you mean if I use a text editor to modify a module file while KiCad is running, will KiCad notice and reload it? The answer is yes. The checksum is generated as a hash of the disk directory last-modified dates; the lib-table only tells it what the current libraries are.
A text editor is one use case but the footprint library editor can also save an entire library file without going through the fp-lib-table so it's important that we don't break this behavior. I may have missed this as I am sitting in Montreal airport after missing my connection with no sleep, a nasty case of jet lag, and an inbox that is sprialing out of control so I may have just overlooked it.
Nice talk at FOSDEM, by the way. Do we all get t-shirts? ;)
Maybe one of these days I'll get around to some KiCad apparel of some type to give out to the dev team. Although I don't think you should depend on my lack of graphics skills to design anything. :)
Cheers,
Wayne
Cheers,
Jeff.
PS: updated patch attached to fix the issue Seth discovered (hypothesised?).
On 5 Feb 2018, at 21:59, Wayne Stambaugh <stambaughw@xxxxxxxxx <mailto:stambaughw@xxxxxxxxx>> wrote:
What happens when footprint library file is modified outside the fp-lib-table? At one point you could change the footprint library file without performing the file write through the fp-lib-table and the next time you accessed the library, it would recognize the file was modified and reload the cache. Please make sure this behavior is not broken.
On 02/05/2018 04:51 PM, Jeff Young wrote:
wxWidgets should return Now() which will make the checksums not match and trigger a reload.
Of course what actually happens is that wxWidgets asserts. ;)
New patch on the way….
Cheers,
Jeff.
On 5 Feb 2018, at 21:42, Seth Hillbrand <seth.hillbrand@xxxxxxxxx <mailto:seth.hillbrand@xxxxxxxxx> <mailto:seth.hillbrand@xxxxxxxxx>> wrote:
Jeff-
Will removing a footprint library trigger a refresh? Or will that mess up the checksum calculation?
-S
2018-02-05 13:04 GMT-08:00 Jeff Young <jeff@xxxxxxxxx <mailto:jeff@xxxxxxxxx> <mailto:jeff@xxxxxxxxx>>:
This one for Place Footprint (specifically the List All dialog
found therein).
On my machine it knocks the first-use time from 4s to 3s and the
subsequent-use time from 2.5s to 1s.
Cheers,
Jeff.
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
<https://launchpad.net/~kicad-developers>
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
<https://launchpad.net/~kicad-developers>
More help : https://help.launchpad.net/ListHelp
<https://help.launchpad.net/ListHelp>
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp