November 04

Summary of Progress (October 28 – November 03)

This week, I focused on improving SARIF support and documentation, along with exploring options for enhanced error reporting visuals in the DMD compiler.

What I Worked On:

  • Key PRs:

    1. docs(errors): Added Ddoc comments and README entry #17040
    2. refactor(errors): Improved SARIF serialization #17042
    3. enhance(errors): Set dynamic ruleId based on ErrorKind#17045
    4. Learning from- feat(errors): Enabled stateful ErrorSinks to react to compilation ending #17051
  • Exploring Enhanced Error Reporting with Visual Indicators:
    I began investigating options for integrating more detailed visual indicators like squiggles and carets in error reporting. Specifically, I reviewed how GCC and Rust compilers implement these features to make error messages more intuitive.

Challenges:

  • Adjusting SARIF serialization (for multiple errors and successful executions) while ensuring compatibility with the error reporting structure required careful reorganization.

Next Steps:

  • I’ll further explore integrating squiggles and caret markers for error messages, drawing inspiration from GCC and Rust's implementations.
  • I’ll keep refining SARIF serialization and error message structuring, as well as exploring additional utilities for enhanced error details.