Bug 18961 – Need give to compiler/linker' warning/errors some codes (like VC)

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-09T15:42:26Z
Last change time
2024-12-13T18:59:06Z
Assigned to
No Owner
Creator
a11e99z
Moved to GitHub: dmd#19445 →

Comments

Comment #0 by black80 — 2018-06-09T15:42:26Z
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 by black80 — 2018-06-09T16:08:31Z
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 by pro.mathias.lang — 2020-06-10T03:40:11Z
Transferring to DMD as that's where the enhancement should be.
Comment #3 by robert.schadek — 2024-12-13T18:59:06Z
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