Skip to content

Commit

Permalink
[Fixed] Problems with KiCad 7.0.5 ERC formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jun 9, 2023
1 parent ceb41d8 commit 7744993
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- show_eco: visible Eco*.User (only when use_layer_colors enabled)
- show_adhesive: visible *.Adhesive

### Fixed
- Problems with KiCad 7.0.5 ERC formatting


## [2.2.5] - 2023-04-18
### Added
Expand Down
12 changes: 8 additions & 4 deletions src/eeschema_do
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,15 @@ def eeschema_parse_erc(cfg):
if cfg.kicad_version >= KICAD_VERSION_5_99 and i < len(lines):
# KiCad 6 moved the severity to the next line
line = lines[i+1]
# KiCad 7.0.2 bug: a message with two extra \n
# Error reading simulation model from symbol '#PWR03':\nFailed to read simulation model from fields.\n
if '; Severity' not in line and i+3 < len(lines) and lines[i+2] == '':
if '; Severity' not in line and i+3 < len(lines):
if lines[i+2] == '':
# KiCad 7.0.2 bug: a message with two extra \n
# Error reading simulation model from symbol '#PWR03':\nFailed to read simulation model from fields.\n
line = lines[i+3]
else:
# KiCad 7.0.5 bug: a message with one extra \n
line = lines[i+2]
msg += ' '+line
line = lines[i+3]
# Discard messages explicitly excluded using the GUI
excluded = '(excluded)' in line
if r'Severity: error' in line:
Expand Down

0 comments on commit 7744993

Please sign in to comment.