Bug 10335 – Error messages should have unique ID

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-11T08:15:12Z
Last change time
2024-12-13T18:08:05Z
Assigned to
No Owner
Creator
Simen Kjaeraas
Moved to GitHub: dmd#18608 →

Comments

Comment #0 by simen.kjaras — 2013-06-11T08:15:12Z
In the Visual C++ and Visual C# compilers, error messages have unique IDs. This makes them easy to google, and information about each error can easily be created and enumerated in a wiki or other database. These error codes need not necessarily be the same in DMD as in GDC, LDC, or other D compilers, but at least within DMD it would be nice to have consistent IDs between releases.
Comment #1 by bearophile_hugs — 2013-06-11T09:45:58Z
I think this enhancement is a good idea, despite requiring some work to be implemented. One discussion: http://forum.dlang.org/thread/[email protected] (In reply to comment #0) > These error codes need not necessarily be the same in DMD as in GDC, LDC, or > other D compilers, but at least within DMD it would be nice to have consistent > IDs between releases. It's much better for error message IDs to be standard for all D compilers, to simplify both the documentation and the ease for the programmer to debug code using different compilers. I think the C# error numbers are the same between dotnet and mono.
Comment #2 by andrej.mitrovich — 2013-06-11T14:04:13Z
Yeah, I had this thought before too. A page with a list of IDs, error message descriptions and how to work around them and fix the code would be very useful to have. Currently the only thing we have is this: http://dlang.org/warnings.html
Comment #3 by andrej.mitrovich — 2013-06-11T14:06:09Z
(In reply to comment #2) > Yeah, I had this thought before too. A page with a list of IDs, error message > descriptions and how to work around them and fix the code would be very useful > to have. > > Currently the only thing we have is this: http://dlang.org/warnings.html Note that we should consider making and distributing a simple text file which is then processed and converted into an HTML file. The reason why is that it would allow IDE tools to read this text file and then display the full information of a given error/warning ID.
Comment #4 by robert.schadek — 2024-12-13T18:08:05Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18608 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB