Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(errors): make verrors=context global and update test outputs #17085

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

royalpinto007
Copy link
Contributor

@royalpinto007 royalpinto007 commented Nov 23, 2024

WIP - Make verror=context usage global and update related test files accordingly.

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @royalpinto007! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#17085"

compiler/src/dmd/mars.d Outdated Show resolved Hide resolved
compiler/src/dmd/globals.d Outdated Show resolved Hide resolved
@royalpinto007 royalpinto007 force-pushed the verrors-context-global branch 3 times, most recently from 0081e4e to e3d8e37 Compare November 23, 2024 15:24
@dkorpel
Copy link
Contributor

dkorpel commented Nov 23, 2024

Was it decided somewhere that this should become the default? I prefer the current default, and don't like how this makes the test suite harder to maintain.

@royalpinto007 royalpinto007 force-pushed the verrors-context-global branch 2 times, most recently from 61d3006 to 18a28ac Compare November 23, 2024 17:07
@maxhaton
Copy link
Member

maxhaton commented Nov 23, 2024

Was it decided somewhere that this should become the default? I prefer the current default, and don't like how this makes the test suite harder to maintain.

Don't think so, but we are one of not many languages still not doing the squiggle by default. That debate aside, the last time I think someone (hatf0 I think) tried to turn it a bunch of things blew up so I asked @royalpinto007 to look into just to see how things were going on that front.

@thewilsonator thewilsonator added Blocked Needs Changelog A changelog entry needs to be added to /changelog labels Nov 23, 2024
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
@bangbangsheshotmedown
Copy link
Contributor

Was it decided somewhere that this should become the default? I prefer the current default, and don't like how this makes the test suite harder to maintain.

I like this PR

With the code example, i know exactly what's wrong without having to decipher a lengthily message

I use Zig a lot and this is so much better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked Needs Changelog A changelog entry needs to be added to /changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants