www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21221] New: only print unique messages (from the compiler)

https://issues.dlang.org/show_bug.cgi?id=21221

          Issue ID: 21221
           Summary: only print unique messages (from the compiler)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: mingwu gmail.com

I'm using "-vtls" to view the thread local variables, but I saw thousands of
lines of duplicate messages like this:

...
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
...

[thousands of lines of duplication]

I'm wondering if dmd can detect such duplication, and only print unique
messages.


Right now, I'm using this shell work-around:

$ make release | grep 'is thread local' | sort | uniq

Thanks.

--
Sep 03 2020