Re: Limit number of compiler error messages

2012-05-27 Thread Stewart Gordon
On 22/05/2012 18:36, cal wrote: snip my build command 21 | 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. By something similar do you mean a way of

Re: Limit number of compiler error messages

2012-05-27 Thread cal
On Sunday, 27 May 2012 at 18:31:53 UTC, Stewart Gordon wrote: What version of Windows are you using? Modern versions support 2 to redirect stderr to a file. But 2| doesn't seem to work correspondingly (at least under Vista, don't know about Win7) - by the looks of it it just passes 2 as an

Re: Limit number of compiler error messages

2012-05-22 Thread Don Clugston
On 20/05/12 00:38, cal wrote: Is there a way to limit the dmd compiler to outputting just the first few errors it comes across? No, but the intention of DMD is to generate only one error per bug in your code. If you are seeing a large number of useless errors, please report it in bugzilla.

Re: Limit number of compiler error messages

2012-05-22 Thread Robert Clipsham
On 19/05/2012 23:38, cal wrote: Is there a way to limit the dmd compiler to outputting just the first few errors it comes across? 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

Re: Limit number of compiler error messages

2012-05-22 Thread Andrej Mitrovic
On 5/20/12, cal callumena...@gmail.com wrote: Is there a way to limit the dmd compiler to outputting just the first few errors it comes across? If you're getting a ton of unrelated errors it might be related to this: http://d.puremagic.com/issues/show_bug.cgi?id=8082 I regularly get hundreds

Re: Limit number of compiler error messages

2012-05-22 Thread cal
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 21 |

Re: Limit number of compiler error messages

2012-05-22 Thread Dmitry Olshansky
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

Re: Limit number of compiler error messages

2012-05-22 Thread cal
On Tuesday, 22 May 2012 at 17:47:18 UTC, Dmitry Olshansky wrote: Check both stdout stderr. There is something funny with the way they are setup on Windows. Ahh... on my home laptop, it must go to stderr, on my work laptop, stdout. Thanks!

Limit number of compiler error messages

2012-05-19 Thread cal
Is there a way to limit the dmd compiler to outputting just the first few errors it comes across?