MCPcopy Create free account
hub / github.com/RightNow-AI/rightnow-cli / _parse_compilation_errors

Method _parse_compilation_errors

rightnow_cli/compiler.py:286–297  ·  view source on GitHub ↗

Parse and format compilation errors.

(self, error_output: str)

Source from the content-addressed store, hash-verified

284 return info
285
286 def _parse_compilation_errors(self, error_output: str) -> str:
287 """Parse and format compilation errors."""
288 lines = error_output.strip().split('\n')
289
290 error_lines = []
291 for line in lines:
292 if "error:" in line or "Error:" in line:
293 error_lines.append(line.strip())
294 elif error_lines and line.strip():
295 error_lines.append(f" {line.strip()}")
296
297 return '\n'.join(error_lines) if error_lines else error_output
298
299 def get_kernel_info(self, compiled_kernel: Dict[str, Any]) -> Dict[str, Any]:
300 """Extract kernel information from compiled data."""

Callers 1

compile_kernelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected