-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.ProposalProposal-Acceptedhelp wanted
Milestone
Description
Previous discussion happened in issue #21119.
Currently, t.Error
calls print only the base name of the source file.
This is fine when running a single test, but in larger projects, it is a significant productivity boost to have relative (or full) path names, which make the “jump to next compilation error” feature in popular editors work.
I understand the outcome of #21119 (can’t change the default), but I suggest adding a knob to opt into printing relative or full paths.
Perhaps this could be similar to log.SetFlags
, where you can specify Llongfile or Lshortfile?
Let me know if this would be okay, and I’d be happy to send a CL.
TheMightyGit, jlisee, yamada-wacul, ro-tex, emarcotte and 9 more
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.ProposalProposal-Acceptedhelp wanted