SchrodingersGat / KiBoM

Configurable BoM generation tool for KiCad EDA (http://kicad.org/)
MIT License
350 stars 95 forks source link

Part is excluded if footprint name is too long #192

Closed KittyBumpkins closed 3 months ago

KittyBumpkins commented 7 months ago

Part is excluded from BOM if footprint name is too long. Should default to include part in BOM.

SchrodingersGat commented 6 months ago

@KittyBumpkins can you provide an example of a long footprint name which would be excluded?

KittyBumpkins commented 6 months ago

Here is the footprint name that caused the problem:

DB9_Female_RA_EdgePinOffset7.70_MountingHolesOffset9.12

After the footprint name was shortened the part was included in the BOM.

On Mon, Oct 9, 2023 at 5:17 PM Oliver @.***> wrote:

@KittyBumpkins https://github.com/KittyBumpkins can you provide an example of a long footprint name which would be excluded?

— Reply to this email directly, view it on GitHub https://github.com/SchrodingersGat/KiBoM/issues/192#issuecomment-1754103909, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4VGKDM6BFMEGYBLVML5MLX6SH2JAVCNFSM6AAAAAA5LEOTUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJUGEYDGOJQHE . You are receiving this because you were mentioned.Message ID: @.***>

SchrodingersGat commented 6 months ago
python "C:\kicad\KiBoM/KiBOM_CLI.py" "C:\...\test_pro.xml" "C:/.../test_pro/test_pro" -vvvvv
Success.
 KiBOM version 1.9.0
 Output directory: 'C:\...\test\test_pro'
 PCB variant: default
INFO b"Excluding 'R1': Field 'Footprint' (DB9_Female_RA_EdgePinOffset7.70_MountingHolesOffset9.1) matched 'mount.*hole'"
INFO Removing: Build Quantity

It looks like it is simply matching the regex too aggressively, not related to a long footprint name