[SAOC 2024] Improve D Error Messages - Weekly Update #14

Royal Simpson Pinto royalpinto007 at gmail.com
Mon Dec 23 09:29:17 UTC 2024


## Summary of Progress (December 16 – December 22)

This week, I completed the implementation of the `verrors=simple` 
option and moved on to enabling `verrors=context` globally. The 
main focus remains on maintaining a clean test suite while 
ensuring the changes provide an improved user experience.

### What I Worked On

1. **Completed `verrors=simple` Implementation**
    - The feature allows to skip context printing:
      **PR**: [feat(errors): implement verrors=simple to skip 
context printing #20566](https://github.com/dlang/dmd/pull/20566).

2. **Global Enablement of `verrors=context`**
    - Began work on enabling `verrors=context` globally:
      **PR**: [feat(errors): enable verrors=context globally 
#20576](https://github.com/dlang/dmd/pull/20576).
    - Successfully enabled `verrors=simple` for all 
`FAIL_COMPILATION` test files to minimize test noise.

### Challenges
While applying `verrors=simple` to `COMPILE` and `RUN` test files 
(in `d_do_test.d`), I encountered failing unit tests. Resolving 
these issues is crucial before fully enabling `verrors=context` 
globally.

### Next Steps
- Investigate and resolve the unit test failures related to 
`COMPILE` and `RUN` test files.
- Finalize the global enablement of `verrors=context` with 
`verrors=simple` preserving the original behavior of the test 
suite.


More information about the Digitalmars-d mailing list