yaqwsx / KiKit

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

An error occurred: could not convert string to float: '' #606

Closed greenscreenflicker closed 11 months ago

greenscreenflicker commented 11 months ago

Prerequisites

KiKit version

kikit, version 1.4.0+6.gd7b2198

KiCAD version

7.0.7

Operating system

Windows

Description

auxsupply.zip

Look at the script attached. Two issues:

  1. Exclusions are not taken into account. kikit fab jlcpcb --assembly --schematic ../auxsupply.kicad_sch ../auxsupply.kicad_pcb gerber_single/ ** Found 2 DRC violations: ** [clearance]: Clearance violation (rule HV-800V clearance 1.7000 mm; actual 1.5000 mm) Rule: HV-800V; Severity: error @(94.5300 mm, 102.1525 mm): Pad 1 [F_SWN_SNUB] of D204 on F.Cu @(94.5300 mm, 106.1525 mm): Pad 2 [/AC_IN/DC+] of D204 on F.Cu [clearance]: Clearance violation (rule HV-800V clearance 1.7000 mm; actual 1.5000 mm) Rule: HV-800V; Severity: error @(91.0000 mm, 102.0000 mm): Pad 1 [F_SWN_SNUB] of D205 on F.Cu @(91.0000 mm, 106.0000 mm): Pad 2 [/flyback/FB_SWN] of D205 on F.Cu DRC failed. See report above. No files produced

  2. kikit fab jlcpcb --assembly --no-drc --schematic ../auxsupply.kicad_sch ../auxsupply.kicad_pcb gerber_single/ An error occurred: could not convert string to float: '' No output files produced

Steps to Reproduce

see above

yaqwsx commented 11 months ago

Regarding point 1: there are no exclusions in the project you attached; when you open file auxsupply.kicad_pro you can see there are none: "drc_exclusions": [],. I can also see them as not excluded in KiCAD. This is not a bug in KiKit, you probably only didn't save the project properly. When you exclude them and properly save the project, no error is reported.

Regarding point 2: we wrongly reported error; this is fixed in 278e20e. Now the error message is clear: An error occurred: U601: Invalid format of compensation '0;0;180;' – there should be 3 parts, got 4