Limit number of compiler error messages
Dmitry Olshansky
dmitry.olsh at gmail.com
Tue May 22 10:47:10 PDT 2012
On 22.05.2012 21:36, cal wrote:
> On Tuesday, 22 May 2012 at 09:50:41 UTC, Robert Clipsham wrote:
>> As Don said, if there are any useless error messages it is a bug, and
>> needs to be reported at:
>>
>> http://d.puremagic.com/issues/
>>
>> This said, if you're on a non-Windows platform, you can use the
>> following:
>>
>> <my build command> 2>&1 | head -n <number of lines you want to see>
>>
>> Where <my build command> is your dmd/rdmd/build script command.
>> There's probably something similar you could use on Windows, I don't
>> really know though.
>
> They are probably all valid errors, I am porting a rather large C file
> to D and it takes a few seconds (perhaps 10 seconds) for the compiler to
> finish listing all the things I haven't fixed up yet, makes the process
> a bit more tedious is all. No biggy, thought there might be a switch I
> missed.
>
> Interestingly, I don't seem able to redirect the compiler output on
> Windows, or even pipe it.
Check both stdout & stderr. There is something funny with the way they
are setup on Windows.
--
Dmitry Olshansky
More information about the Digitalmars-d-learn
mailing list