-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
Enable -verrors=context by default #13174
Conversation
Thanks for your pull request and interest in making D better, @hatf0! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
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 referencesYour 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 locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#13174" |
I think our error messages are massively behind the competition so I'm tempted to say this should be a no-brainer. |
Gotta do more work on fixing up the tests, since we're modifying the default compiler output. |
@hatf0 Check out the AUTO UPDATE option of |
d889218
to
389b187
Compare
Regarding forcibly specifying This will, of course, be eventually fixed once I have my way (and introduce error codes to the compiler), and we can just test for those rather then |
389b187
to
4ee85d2
Compare
Also looks like this exposed an issue with |
I would say that's a blocker. First because now the tests that check |
Yeah... it looks like this exposed a lot of issues with it. I think I'm going to close this and take a stab at refactoring The issues are mostly fixed (other then the whole "we don't test for -verrors=context"), but comes at the price of this PR becoming incredibly bloated beyond just "enabling -verrors=context" -- i.e. adding a header for FileCache & now requiring that it becomes initialized by other users of the front-end. Realistically, it looks like the majority of the errors are related to |
Thanks! Getting features to a finished state is ungrateful work, yet highly appreciated. Personally I don't mind keeping this PR open - For large body of work, I tend to make a giant PR that shows the final product, and break it down into smaller PRs to make it reviewable. But without a clear vision of the final product, it's hard for reviewers to tell whether the design is workable or not. But to each his own. Feel free to ping (if needed, repeatedly) if your other PRs aren't reviewed timely. |
There is a GSoC thingy open in projects for someone to work just on error
messages. Could be one for next time round.
…On Mon, 18 Oct 2021, 02:27 Mathias LANG, ***@***.***> wrote:
Thanks! Getting features to a finished state is ungrateful work, yet
highly appreciated.
Personally I don't mind keeping this PR open - For large body of work, I
tend to make a giant PR that shows the final product, and break it down
into smaller PRs to make it reviewable. But without a clear vision of the
final product, it's hard for reviewers to tell whether the design is
workable or not. But to each his own.
Feel free to ping (if needed, repeatedly) if your other PRs aren't
reviewed timely.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#13174 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLI75FFSGD7WH7GZDUMDSDUHNZWJANCNFSM5GC32X7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
No, it won't. Tests must verify that the error messages point to the symbols/expressions/... causing the error - even with error codes. (Context: W.r.t. to the output of |
Point taken -- I'm just pretty irked with the current test suite and the over-bearingly large usage of
Agreed. No clue how and why |
Why?
It's been nearly 3 years since this comment (which introduced
-verrors=context
): #8487 (comment), where @wilzbach said that-verrors=context
would be eventually enabled by default, dependent on community feedback.I feel that it's been enough time for that community feedback, and leaving it behind a feature flag is doing a disservice to most developers.
dmd
, admittedly, still has a pretty awful user experience, and this is one of many planned fixes to improve that.