ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lars Huttar <lars_huttar@sil.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: suppressing console output
Date: Wed, 19 Mar 2014 12:37:27 -0400	[thread overview]
Message-ID: <5329C7C7.2080301@sil.org> (raw)
In-Reply-To: <5329BBA9.3050208@wxs.nl>

On 3/19/2014 11:45 AM, Hans Hagen wrote:
> On 3/19/2014 4:37 PM, Lars Huttar wrote:
>
>> In our case these amount to pages and pages of output, because our
>> document consists of many many files that reference each other
>> (including images). So I would vote a big +1 for that change.
>
> doesn't --batchmode help then?

My mistake... --batchmode does seem to get rid of the file open/close
messages. (Until I learned that --noconsole takes an argument, there was
still so much output that it was hard to see a difference in output due
to --batchmode.)

Unfortunately, --batchmode also seems to suppresses printing fatal error
messages and stopping on them (as its --help documentation suggests). So
when the tex code has an error, the compilation continues to the end
(wasting significant time) and then exits with a failure status code,
but no indication of where the error occurred.

So --batchmode doesn't really seem to be an option for us.
Unless we use batchmode most of the time and then rerun without
batchmode after an error occurs.

I tried having the build script discard stdout from the context process
(with --noconsole=tmp.log but without --batchmode). But apparently, the
error output of context goes to stdout instead of stderr: Context stops
on a fatal error but the error message and prompt are lost, and the
process hangs, waiting for the user to respond to a message they can't see.

Lars

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2014-03-19 16:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-19 14:17 Lars Huttar
2014-03-19 15:03 ` Aditya Mahajan
2014-03-19 15:09   ` Hans Hagen
2014-03-19 15:15     ` Aditya Mahajan
2014-03-19 15:33       ` Hans Hagen
2014-03-19 15:37         ` Lars Huttar
2014-03-19 15:45           ` Hans Hagen
2014-03-19 16:37             ` Lars Huttar [this message]
2014-03-19 19:56               ` Hans Hagen
2014-03-19 15:29     ` Lars Huttar
2014-03-19 15:36       ` Hans Hagen
2014-03-19 15:46         ` Lars Huttar
2014-03-19 15:50           ` Wolfgang Schuster
2014-03-19 15:52           ` Aditya Mahajan
2014-03-19 15:54           ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5329C7C7.2080301@sil.org \
    --to=lars_huttar@sil.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).