yaqwsx / KiKit

Automation tools for KiCAD
https://yaqwsx.github.io/KiKit
MIT License
1.54k stars 201 forks source link

Unsupported exclusion object count #602

Closed ghost closed 1 year ago

ghost commented 1 year ago

Prerequisites

KiKit version

kikit, version 1.4.0

KiCAD version

Version: 7.0.8-7.0.8~ubuntu22.04.1, release build

Operating system

Linux Mint 21.2

Description

In a project with excluded DRC warnings, kikit fab fails with error "An error occurred: Unsupported exclusion object count". --no-drc yields success. Opening the project, running DRC, and saving also yields success, but kikit fab then fails again after KiCad is closed.

Steps to Reproduce

  1. Download and uncompress this project: KosmoPulseMain.zip
  2. kikit fab jlcpcb KosmoPulseMain/KosmoPulseMain.kicad_pcb ./
  3. kikit fails.
  4. kikit fab jlcpcb --no-drc KosmoPulseMain/KosmoPulseMain.kicad_pcb ./
  5. kikit succeeds.
  6. Open the project in KiCad, open PCB editor.
  7. Run DRC. It succeeds. Note there are two excluded warnings.
  8. Save PCB.
  9. Repeat kikit fab command (without --no-drc).
  10. kikit succeeds.
  11. Close KiCad.
  12. Repeat kikit fab command.
  13. kikit fails.

If I remove the excluded status from the warnings, save, and close KiCad, then kikit fab succeeds.

Expected behavior: Kikit should respect DRC violation exclusions, especially when they are for warnings.

yaqwsx commented 1 year ago

Fixed in 78d3d0c