DRC Rule Error After Removing severity from the Design Rule – Rules Disappeared

Hi all,

I’m currently facing an issue in KiCad’s Design Rule Editor and would really appreciate your help.

After completing my PCB design, I ran the DRC check. I had added a custom rule earlier that included a severity line (e.g., severity error). After running the check, I removed just the severity line from the rule, thinking it was optional.

However, after that, the DRC editor started throwing syntax errors such as:

  • Unrecognized item 'rule'. Expected constraint, condition, or disallow.
  • Missing ')'

also i cant run DRC
image

It looks like your rules on lines 107 and 111 don’t have a closing bracket (which is what the last error is telling you).

image
Any idea why it’s showing the error “Unrecognized item ‘rule’”? for 55 line

Any idea why it’s showing “Missing ‘)’” at line 116?
image

Not without seeing all the rules. Just post the full ruleset as a block quote.

But it looks like more missing brackets. Go and check immediately before the first error and see if there’s a bracket missing or a quotation mark incorrect / missing.

Are you sure about:

You seem to have multiple mismatched brackets as JamesJ already mentioned. It looks like you missed the final closing brackets on at least 5 different rules.

I recommend you cut all the rules, and then paste them into a text editor.
Then start over with an empty set of rules (did you start with a “version” statement?) and then you can put the rules back one by one, or in small groups, and run ERC each time to see whether the last added rule has a problem.

1 Like