-
-
Notifications
You must be signed in to change notification settings - Fork 607
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
denum.d: enable syntax highlighting of error messages #6803
Conversation
8743386
to
a7b8524
Compare
@@ -1,7 +1,7 @@ | |||
/* | |||
TEST_OUTPUT: | |||
--- | |||
fail_compilation/fail109.d(12): Error: enum member fail109.Bool.Unknown initialization with (Bool.True + 1) causes overflow for type 'bool' | |||
fail_compilation/fail109.d(12): Error: enum member fail109.Bool.Unknown initialization with `Bool.True+1` causes overflow for type `bool` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If D had error message codes, the test could just check for the correct code instead of an exact output string... it'd make changing these more robust since you could actually rely on the test and not be changing them so frequently.
We really should add them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had error codes in DMC++. It was a giant pain in other ways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably belongs on the NG, but your comment made me curious. Would you mind elaborating a bit about the troubles resulting from using error codes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it does belong in the n.g. not here. Please ask there.
36d2435
to
83d21fe
Compare
Codecov Report
@@ Coverage Diff @@
## master #6803 +/- ##
=========================================
- Coverage 85.36% 82.97% -2.4%
=========================================
Files 120 120
Lines 65807 65807
=========================================
- Hits 56177 54601 -1576
- Misses 9630 11206 +1576
Continue to review full report at Codecov.
|
Why was it necessary to change error messages and refactor the test files? I'd be much more comfortable merging this if it wasn't 90% unrelated changes. |
The syntax highlighting looks for text between backticks. This has become a de-facto standard in markup, and is used by Ddoc as well.
I merged a couple of them to reduce the number of files. The tests are the same. |
No I get that, but you also made unrelated edits to error messages for some reason.
Yeah, I get that too, but it didn't need to be in this PR and I assume is behind the codecov spam. TBH I think the tradeoff is different with the fail_compilation tests and the would be better off in multiple files instead of combined together. It's also nice to have the bugzilla number and filename match, instead of only having that information in the comments. Also, jenkins is failing again. |
83d21fe
to
4a88521
Compare
If I didn't do it in this PR it would never get done, because I wouldn't remember which files of the pile of them could be merged later.
It would have been less work for me if they were grouped together more.
|
4a88521
to
5d36e96
Compare
Working now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @yebblies let me know if there's any blocker.
No description provided.