style: apply Prettier formatting to TS/JS/JSON/MD files
Add Prettier as a dev dependency with .prettierrc.json config and .prettierignore. Hook added via mirrors-prettier in pre-commit config. All TypeScript, JSON, Markdown, and YAML files auto-formatted. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ This document tracks known issues and provides workarounds where available.
|
||||
**Status:** KNOWN - Non-critical
|
||||
|
||||
**Symptoms:**
|
||||
|
||||
```
|
||||
AttributeError: 'BOARD' object has no attribute 'LT_USER'
|
||||
```
|
||||
@@ -31,10 +32,12 @@ AttributeError: 'BOARD' object has no attribute 'LT_USER'
|
||||
**Status:** KNOWN - Workaround available
|
||||
|
||||
**Symptoms:**
|
||||
|
||||
- Copper pours created but not filled automatically when using SWIG backend
|
||||
- Calling `ZONE_FILLER` via SWIG causes segfault
|
||||
|
||||
**Workaround Options:**
|
||||
|
||||
1. Use IPC backend (zones fill correctly via IPC)
|
||||
2. Open the board in KiCAD UI -- zones fill automatically when opened
|
||||
3. Use `refill_zones` tool (may still segfault in some configurations)
|
||||
@@ -48,6 +51,7 @@ AttributeError: 'BOARD' object has no attribute 'LT_USER'
|
||||
**Status:** BY DESIGN
|
||||
|
||||
**Symptoms:**
|
||||
|
||||
- MCP makes changes via SWIG backend
|
||||
- KiCAD does not show changes until file is reloaded
|
||||
|
||||
@@ -64,6 +68,7 @@ AttributeError: 'BOARD' object has no attribute 'LT_USER'
|
||||
**Status:** EXPERIMENTAL
|
||||
|
||||
**Known Limitations:**
|
||||
|
||||
- KiCAD must be running with IPC enabled (Preferences > Plugins > Enable IPC API Server)
|
||||
- Some commands fall back to SWIG (e.g., delete_trace)
|
||||
- Footprint loading uses hybrid approach (SWIG for library, IPC for placement)
|
||||
@@ -85,32 +90,40 @@ AttributeError: 'BOARD' object has no attribute 'LT_USER'
|
||||
## Recently Fixed (v2.2.0 - v2.2.3)
|
||||
|
||||
### B.Cu Footprint Routing (Fixed v2.2.3)
|
||||
|
||||
- `route_pad_to_pad` now correctly detects B.Cu footprints and inserts vias
|
||||
- KiCAD 9 SWIG `pad.GetLayerName()` always returned F.Cu for flipped footprints -- fixed using `footprint.GetLayer()`
|
||||
|
||||
### B.Cu Placement Hang (Fixed v2.2.3)
|
||||
|
||||
- Placing footprints on B.Cu no longer causes ~30s freeze
|
||||
- Fix: call `board.Add()` before `Flip()`
|
||||
|
||||
### Board Outline Rounded Corners (Fixed v2.2.3)
|
||||
|
||||
- `add_board_outline` now correctly applies cornerRadius for rounded_rectangle shape
|
||||
|
||||
### Project-Local Library Resolution (Fixed v2.2.2)
|
||||
|
||||
- `add_schematic_component` and `place_component` now search project-local sym-lib-table and fp-lib-table
|
||||
- Previously only global KiCAD library paths were searched
|
||||
|
||||
### Template File Corruption (Fixed v2.2.2)
|
||||
|
||||
- Removed invalid `;;` comment lines from template schematics
|
||||
- Restored KiCAD 9 format version (20250114) in templates
|
||||
|
||||
### copy_routing_pattern Empty Results (Fixed v2.2.2)
|
||||
|
||||
- Added geometric fallback when pads have no net assignments
|
||||
|
||||
### Schematic Component Corruption (Fixed v2.2.1)
|
||||
|
||||
- `add_schematic_component` no longer corrupts .kicad_sch files
|
||||
- Rewritten to use text manipulation instead of sexpdata formatting
|
||||
|
||||
### SWIG/UUID Comparison Bugs (Fixed v2.2.0)
|
||||
|
||||
- Fixed SwigPyObject UUID comparison
|
||||
- Fixed SWIG iterator invalidation after board.Remove()
|
||||
- Added board.SetModified() to prevent dangling pointer crashes
|
||||
@@ -136,6 +149,7 @@ If you encounter an issue not listed here:
|
||||
## General Workarounds
|
||||
|
||||
### Server Will Not Start
|
||||
|
||||
```bash
|
||||
# Check Python can import pcbnew
|
||||
python3 -c "import pcbnew; print(pcbnew.GetBuildVersion())"
|
||||
@@ -145,12 +159,14 @@ python3 python/utils/platform_helper.py
|
||||
```
|
||||
|
||||
### Commands Fail After Server Restart
|
||||
|
||||
```
|
||||
# Board reference is lost on restart
|
||||
# Always run open_project after server restart
|
||||
```
|
||||
|
||||
### KiCAD UI Does Not Show Changes (SWIG Mode)
|
||||
|
||||
```
|
||||
# File > Revert (or click reload prompt)
|
||||
# Or: Close and reopen file in KiCAD
|
||||
@@ -158,6 +174,7 @@ python3 python/utils/platform_helper.py
|
||||
```
|
||||
|
||||
### IPC Not Connecting
|
||||
|
||||
```
|
||||
# Ensure KiCAD is running
|
||||
# Enable IPC: Preferences > Plugins > Enable IPC API Server
|
||||
@@ -168,6 +185,7 @@ python3 python/utils/platform_helper.py
|
||||
---
|
||||
|
||||
**Need Help?**
|
||||
|
||||
- Check [IPC_BACKEND_STATUS.md](IPC_BACKEND_STATUS.md) for IPC details
|
||||
- Check logs: `~/.kicad-mcp/logs/kicad_interface.log`
|
||||
- Open an issue on GitHub
|
||||
|
||||
Reference in New Issue
Block a user