<div dir="ltr"><div>Hi Chris,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 18, 2020 at 1:37 PM Chris Tetreault via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_3391276456716634261WordSection1">
<p class="MsoNormal">The thing I use normally only shows the first N lines by default (I don’t know off hand what N is). Honestly, I don’t feel very strongly about the specific order, but it’s not useful when somebody proposes something on the list, and nobody
 voices any dissent (choosing instead to silently oppose the change). My requests would be:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<ol style="margin-top:0in" type="1" start="1">
<li class="gmail-m_3391276456716634261MsoListParagraph" style="margin-left:0in">The order should be customizable via command line.<u></u><u></u></li><li class="gmail-m_3391276456716634261MsoListParagraph" style="margin-left:0in">By default, it should not dump things to multiple locations. If I ask for verbose output, I want to get blasted with all the stuff.<u></u><u></u></li><li class="gmail-m_3391276456716634261MsoListParagraph" style="margin-left:0in">The most important thing for me personally is to see the input to filecheck (I realize that this is in conflict with my earlier point. It’s early and I hadn’t had my coffee
<span style="font-family:"Segoe UI Emoji",sans-serif">😊</span> ). When I get a failure I want to be able to reproduce it in an IDE to use a debugger. Any change should not make this use case harder.<u></u><u></u></li></ol>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Personally, I do not find the argument that the defaults should be setup to be best for newcomers to be very compelling; we are talking about changing the behavior of a non-default option after all.</p></div></div></blockquote><div><br></div><div>What do you mean by a "non-default option"?  The default of -dump-input=never was recently changed to -dump-input=fail.</div><div><br></div><div>Joel<br></div><div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_3391276456716634261WordSection1"><p class="MsoNormal"> If just a bare filecheck invocation doesn’t
 tell a newcomer what they need to know, then they have to do filecheck -help or google the documentation anyways. At that point, they are going to customize it however they want. I assume anybody using filecheck to debug an issue is tech savvy enough to be
 able to configure the options, given reasonable documentation.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">   Christopher Tetreault<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> Sjoerd Meijer <<a href="mailto:Sjoerd.Meijer@arm.com" target="_blank">Sjoerd.Meijer@arm.com</a>> <br>
<b>Sent:</b> Thursday, June 18, 2020 9:45 AM<br>
<b>To:</b> Chris Tetreault <<a href="mailto:ctetreau@quicinc.com" target="_blank">ctetreau@quicinc.com</a>><br>
<b>Cc:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<b>Subject:</b> [EXT] Re: [llvm-dev] FileCheck<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black">I would guess that in a CI system the order doesn't matter much because you look at a webpage? I looked at some build bots today/yesterday that now also show this, and yeah, it's fine either way,
 I was guessing.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black">My primary use-case is usage in a terminal, and displaying the errors first followed by all input makes this pretty unusable.<u></u><u></u></span></p>
</div>
<div class="MsoNormal" style="text-align:center" align="center">
<hr width="98%" size="2" align="center">
</div>
<div id="gmail-m_3391276456716634261divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Chris Tetreault <</span><a href="mailto:ctetreau@quicinc.com" target="_blank">ctetreau@quicinc.com</a><span style="color:black">><br>
<b>Sent:</b> 18 June 2020 17:34<br>
<b>To:</b> Sjoerd Meijer <</span><a href="mailto:Sjoerd.Meijer@arm.com" target="_blank">Sjoerd.Meijer@arm.com</a><span style="color:black">><br>
<b>Cc:</b> </span><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><span style="color:black"> <</span><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><span style="color:black">><br>
<b>Subject:</b> RE: [llvm-dev] FileCheck</span> <u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal">For anybody viewing these failures through some sort of CI system, showing the error first then the input file is more useful for the same reasons you mentioned. Personally, I rarely run filecheck by hand from the command prompt, so your
 change would make my life worse. Granted, I’m just one person.<u></u><u></u></p>
<p class="gmail-m_3391276456716634261xmsonormal"> <u></u><u></u></p>
<p class="gmail-m_3391276456716634261xmsonormal">The point I’m trying to make is that I don’t think it’s clear-cut which order is better, so maybe we shouldn’t change it. I think it might be fine to add an option to swap the order, but I’d be very sad if it started dumping to some random
 file by default.<u></u><u></u></p>
<p class="gmail-m_3391276456716634261xmsonormal"> <u></u><u></u></p>
<p class="gmail-m_3391276456716634261xmsonormal">Thanks,<u></u><u></u></p>
<p class="gmail-m_3391276456716634261xmsonormal">   Christopher Tetreault<u></u><u></u></p>
<p class="gmail-m_3391276456716634261xmsonormal"> <u></u><u></u></p>
<div>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="gmail-m_3391276456716634261xmsonormal"><b>From:</b> llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a>>
<b>On Behalf Of </b>Sjoerd Meijer via llvm-dev<br>
<b>Sent:</b> Thursday, June 18, 2020 9:16 AM<br>
<b>To:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<b>Subject:</b> [EXT] [llvm-dev] FileCheck<u></u><u></u></p>
</div>
</div>
<p class="gmail-m_3391276456716634261xmsonormal"> <u></u><u></u></p>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black">Hello,</span><u></u><u></u></p>
</div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black"> </span><u></u><u></u></p>
</div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black">I am not sold on FileCheck's new behaviour. For failing tests in verbose mode, it first dump the actual error messages, followed by the annotated input file to FileCheck. The result is I can't
 immediately see error messages if the input is more than just a few lines long, so I have to scroll all the way up to see the errors, then down again, etc.
</span><u></u><u></u></p>
</div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black"> </span><u></u><u></u></p>
</div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black">I do see some advantages of dumping the input to FileCheck, but an improvement for me would be:</span><u></u><u></u></p>
</div>
<div>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_3391276456716634261xmsonormal" style="color:black"><span style="font-size:12pt">to dump the input first, then followed by the error message, so that I can the errors first, and then decide to scroll up if I am interested to do so.</span><u></u><u></u></li><li class="gmail-m_3391276456716634261xmsonormal" style="color:black"><span style="font-size:12pt">dump it to a separate file (controlled with an option).</span><u></u><u></u></li></ul>
</div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black">I am interested in changing the behaviour, because I think I find setting environment varibale "FILECHECK_OPTS="--dump-input never"" inconvenient. </span><u></u><u></u></p>
</div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black"> </span><u></u><u></u></p>
</div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black">My 2 pennies.</span><u></u><u></u></p>
</div>
<div>
<p class="gmail-m_3391276456716634261xmsonormal"><span style="font-size:12pt;color:black">Sjoerd.</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>