[SAOC 2024] Improve D Error Messages - Weekly Update #10
Royal Simpson Pinto
royalpinto007 at gmail.com
Mon Nov 25 10:00:20 UTC 2024
### Summary of Progress (November 18 – November 24)
This week, I focused on enabling `verrors=context` globally,
manually updating numerous test outputs, and refining the error
visualization in the DMD compiler to ensure a better user
experience.
### What I Worked On
#### Key PRs:
- feat(errors): make verrors=context global and update test
outputs [#17085](https://github.com/dlang/dmd/pull/17085)
- Implemented global support for `verrors=context`, enhancing
error visualization with consistent squiggles and carets in error
messages.
#### Manual Test Updates:
- Fixed 50+ TEST_OUTPUT's manually this week, ensuring
compatibility with the global implementation of `verrors=context`.
- Currently addressing the remaining outputs, particularly those
containing regexes that cannot be auto-updated, to ensure all
test cases properly reflect the new error visualization.
### Learning and Implementation:
- Studied and resolved discrepancies in outputs caused by the
global `verrors=context` change.
- Ensured all updates align with the intended output format,
avoiding regressions or inconsistencies in error reporting.
### Next Steps:
- Work on fixing the remaining TEST_OUTPUT's, including
regex-based outputs, ensuring they have proper squiggles and
carets.
More information about the Digitalmars-d
mailing list