When components overlap or there’s insufficient routing space, the autorouter fails with cryptic error messages like:
This provides no actionable information to developers about what went wrong or how to fix it.
Enhanced error handling in CapacityMeshAutorouter to detect common failure scenarios and provide clear, actionable error messages:
Error: Unexpected numItems value: 0.
Error: Autorouting failed: No valid routing space available. This often occurs when components are overlapping or when there are insufficient obstacles for routing. Please check component placement and ensure components are not overlapping.
Enhanced error handling in runCycleAndQueueNextCycle() method for async autorouting Enhanced error handling in solveSync() method for synchronous autorouting Detects specific error patterns and provides helpful guidance Maintains backward compatibility - no breaking changes
Solves #763 /claim #763
Aayush Khopade
@Apocalypse96
tscircuit
@tscircuit