On Wednesday, 14 June 2017 at 06:33:26 UTC, Jacob Carlborg wrote:
On 2017-06-14 06:50, Timothee Cour via Digitalmars-d wrote:
eg:
Error: no property 'IF_gray' for type 'ImageFormat'
=>
Error: no property 'IF_gray' for type 'foo.bar.ImageFormat'
and also, why not show where the symbol is defined?
would PR's for that be accepted? is that hard to implement?
Technically, for templates, the fully qualified name include
all the template arguments. In many (some) cases this will be
way too long to print.
Perhaps some simple heuristic of length (> 80 chars?) would
suffice?
Or perhaps Error: no property 'IF_gray' for type 'ImageFormat'
from module 'foo.bar'.
One of the most confusing errors to get is
Error: no property 'IF_gray' for type 'ImageFormat'
when 'ImageFormat ' does have that property but it uses a
different 'ImageFormat' (in another module) that doesn't.