Numbering compiler error messages?
Tobias Müller
troplin at bluewin.ch
Mon Mar 31 07:50:13 PDT 2014
Walter Bright <newshound2 at digitalmars.com> wrote:
> On 3/28/2014 1:23 AM, Johannes Pfau wrote:
>> As an example how this could work, search for CS1002.
>> So do we want this?
>
> I've done this before. Short answer, it's a pain and doesn't really help.
>
> Searching is easy, just type in the message that was displayed, sans the
> variable part. I do it all the time.
I think some sort of short identifier for warnings and errors would be
beneficial. It does not have to be a number.
Advantages not already mentioned:
- Messages can change/improve over time, the ID remains the same.
- Enable/disable warnings by ID.
And this would again enable tools to disable a warning e.g. by
right-clicking on the actual message.
I imagine there are more similar tasks that can be done with only the ID
without actually knowing the meaning of the warning.
Like turning warnings into errors if you don't like the usecase of
disabling warnings.
Since you are already considering URLs in the messages, you need some kind
of ID anyway, otherwise you couldn't build an URL.
Tobi
More information about the Digitalmars-d
mailing list