[Issue 9960] Show warnings/deprecations during template instantiation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 18 22:16:59 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9960



--- Comment #1 from Lionello Lunesu <lio+bugzilla at lunesu.com> 2013-04-18 22:16:58 PDT ---
The reason this needs to be fixed is that's it's too hard to track down errors
in templates, since they simply won't get instantiated on error and the only
message will be "errors instantiating template".

Showing errors during template instantiation is not useful, since there will be
too many, and no notion of "successful" instantiation.

Printing the warnings/deprecations on successful instantiation is probably
tricky because you won't know whether it's successful until much later, and
even then I suppose a particular instantiation might be picked from several
successful ones.

Perhaps it would be sufficient to show warnings/deprecations in verbose mode
only?

Proposal:

-w      no change
-w -v   shows warnings during template instantiation
-wi -v  shows warnings during template instantiation (no linking iff >0)
-d      no change
-d -v   no change
-v      shows deprecation warnings during template instantiation
-dw -v  shows deprecation warnings during template instantiation
-de -v  shows deprecations as errors during template instantiation

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list