INTI-CMNB / KiBot

KiCad automation utility
GNU Affero General Public License v3.0
552 stars 65 forks source link

[FEATURE] KiCad v8 support (DRC/ERC preliminarly) #576

Closed oliv3r closed 6 months ago

oliv3r commented 7 months ago

KiCad 8 is just around the corner (RC2 was release just last week), though the end of january deadline has lapsed.

With v8, one exciting new feature is ERC/DRC can be now called from the CLI, and produces JSON output.

Would be great if KiBot would migrate to v8 support, so we don't have to use the KiCad GUI, and video capture, to get ERC and DRC results!

set-soft commented 7 months ago

They are really untested and full of bugs. I filled two bug reports, but I could fill more:

  1. You can't filter by severity (--severity-* are useless) (16964)
  2. No JSON for DRC (--format json does nothing)
  3. Missing data in the JSON (you don't know if an error was excluded)
  4. The DRC crashes with memory corruption (16965)

To make things worst they made the report less robust because they removed the "Severity" keyword, so you must guess. It needs a loooot of fixes.

oliv3r commented 7 months ago

Well it is just an RC for now :( but that's sad. Was hoping we could get away with the record desktop functionality :(

Ironically they touted as json support to be the major new thing for 8.0

So lets see if they can fix things before 8.0 gets released!

set-soft commented 7 months ago

16965 was fixed, but even the GUI is full of bugs, exclusions not always work, stray messages about locks, really poor performance if pcbnew open eeschema to do the schematic parity check, schematic parity check always performed in the CLI, etc.

Needs much more work, is not a "release candidate"

set-soft commented 7 months ago

Now 16964 is fixed too. So now KiAuto supports E/DRC using kicad-cli

I found another bug, related to the exclusions: 17004

set-soft commented 6 months ago

Ok, KiCad 8 should be supported by the current dev images.

It uses the CLI for ERC and DRC.

Needs testing

set-soft commented 5 months ago

And now we have new preflights named erc and drc. They are for KiCad 8 and has more functionality and less bizarre stuff. You can even get a report in HTML format.