Bug 21221 – only print unique messages (from the compiler)

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-09-04T04:30:32Z
Last change time
2024-12-13T19:11:20Z
Assigned to
No Owner
Creator
mw
Moved to GitHub: dmd#19779 →

Comments

Comment #0 by mingwu — 2020-09-04T04:30:32Z
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.
Comment #1 by robert.schadek — 2024-12-13T19:11:20Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19779 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB