Check if compilation output indicates a stale build state error. These errors typically occur when source/header files are renamed or deleted but the build system still references the old paths. They are recoverable by cleaning stale deps and reconfiguring.
(output: str)
| 64 | |
| 65 | |
| 66 | def is_stale_build_error(output: str) -> bool: |
| 67 | """Check if compilation output indicates a stale build state error. |
| 68 | |
| 69 | These errors typically occur when source/header files are renamed or deleted |
| 70 | but the build system still references the old paths. They are recoverable |
| 71 | by cleaning stale deps and reconfiguring. |
| 72 | """ |
| 73 | output_lower = output.lower() |
| 74 | return any(pattern in output_lower for pattern in STALE_BUILD_PATTERNS) |
| 75 | |
| 76 | |
| 77 | def _is_compilation_error(line: str) -> bool: |
no test coverage detected