D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18961 - Need give to compiler/linker' warning/errors some codes (like VC)
Summary: Need give to compiler/linker' warning/errors some codes (like VC)
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-09 15:42 UTC by a11e99z
Modified: 2024-12-13 18:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description a11e99z 2018-06-09 15:42:26 UTC
ref to "what I mean/want" https://msdn.microsoft.com/en-us/library/zz3ext39.aspx

when I compile my code I got:
> Error: `evt += hz` is not a scalar, it is a `main.Event!(int, string)`
I should remove some text from this error to google it
> to google: Error: is not a scalar, it is a
(after all I still don't understand what wrong with my opOpAssign but)
BETTER to give for warnings/errors codes like DE0005 or DW0220 and prints it like
> Error DE0005: `evt += hz` is not a scalar, it is a `main.Event!(int, string)`

D-prefix is good for Dlang: DE* for errors, DW* for warnings, DL* for linker for example

than I will google it like "dlang DE0005" without cuts unnecessary text and I think that I will find more accurate results with more clear explanations
Comment 1 a11e99z 2018-06-09 16:08:31 UTC
you can change the error text to something more digestible over time, but the error code will remain the same, and you can still find old messages about the error and new ones
Comment 2 Mathias LANG 2020-06-10 03:40:11 UTC
Transferring to DMD as that's where the enhancement should be.
Comment 3 dlangBugzillaToGithub 2024-12-13 18:59:06 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19445

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB