Alternate-KiCad-Library icon indicating copy to clipboard operation
Alternate-KiCad-Library copied to clipboard

KiCad Package and Content Manager adds "PCM_" prefix automatically

Open ONLYA opened this issue 1 year ago • 10 comments

I noticed that the library installed via KiCad 7's Package and Content Manager will have PCM_ as the prefix of every footprint library. Could you please change the symbol-footprint binding for the kicad manager release?

ONLYA avatar Mar 27 '23 10:03 ONLYA

I think there is the same issue for KiCad 6.

ONLYA avatar Mar 27 '23 10:03 ONLYA

Yes, the workaround is to rename all the AKL footprint libraries in your library table to remove the 'PCM_' prefix. KiCad 7 added a feature where libraries downloaded via Plugin and Content Manager will be automatically added to library tables, this adds the 'PCM_' and breaks the previous symbol - footprint link. This issue does not occur when the library is installed manually (downloaded/cloned from github). I'm planning to tackle this issue with release of V4.0 (it's still a months away from being ready) and I will close this issue when this behaviour is actually corrected. Thank you for your patience.

DawidCislo avatar Mar 30 '23 14:03 DawidCislo

I've also updated installation instructions on the official website to hopefully clear some confusion.

DawidCislo avatar Mar 30 '23 14:03 DawidCislo

Thank you. I eventually removed all "PCM_" prefix from all the library names. This is such an unexpected behaviour. Hope there is a KiCad version detection condition to retrieve the package accordingly.

ONLYA avatar Mar 30 '23 14:03 ONLYA

You can clear this prefix. See Screenshot. After the next start the added Footprintlibraries will show up w/o the prefix You can find the setting also in file kicad.json

image image image

bohrh avatar Apr 21 '23 22:04 bohrh

Cheers. This will solve my problem and also for people who know it. Actually, I found the kicad.json file and tried to modify it, which failed in my case. I think we definitely should change the "Preferences" instead. However, I think this still needs to be solved for the users who just appear to install and use this library. This is more likely to be the initial configuration problem from the KiCad source.

ONLYA avatar Apr 21 '23 22:04 ONLYA

As of now I'm considering writing a script to bulk edit all the symbol libraries in a way to add PCM_ prefixes to all footprint links in the PCM release, but still leave the default behavior for people downloading the library through github. This way people using the PCM will have a seamless experience and people installing manually will not have any new issues. As for now either renaming all footprint library aliases or changing preferences is the only workaround.

DawidCislo avatar Apr 22 '23 05:04 DawidCislo

@bohrh Thanks! It really helps!

@DawidCislo Maybe it easier to add attention message in plugin download dialog page to remove library nickname prefix in setting before install AKL ? Screenshot 2024-03-11 195024

imyaFamiliev avatar Mar 11 '24 16:03 imyaFamiliev

The current description in the PCM is a bit outdated, it was written when KiCad 6 was new, and had no such issues. It still points users to the website or github, that has the up-to-date instructions on how to remove the prefix from preferences before downloading, and how to rename all the footprint libraries.

DawidCislo avatar Mar 12 '24 05:03 DawidCislo

Every change to the metadata file has to be reviewed manually by the KiCad devs and I don't want to "spam" them with non-consequential updates to the description.

DawidCislo avatar Mar 12 '24 05:03 DawidCislo

With the release of AKL 4.0, this issue is fixed - newest version 4.0.1 correctly handles the PCM_ prefix, and for people that don't want any prefixes there's the 4.0 version that works without prefixes.

DawidCislo avatar Aug 14 '24 14:08 DawidCislo