From: john at keeping.me.uk (John Keeping)
Subject: How to check error during syntax highlighting
Date: Mon, 24 Dec 2018 18:02:52 +0000 [thread overview]
Message-ID: <20181224180252.GA2084@john.keeping.me.uk> (raw)
In-Reply-To: <CAFaR55rQSTUnqVMvGmt15WUT6AgA_5b11vCpjFcSdFX_YA=dfA@mail.gmail.com>
On Mon, Dec 24, 2018 at 06:37:12PM +0900, Katsuya Horiuchi wrote:
> I have been playing with filters, specifically syntax-highlighting.py,
> in order to render markdown in tree.
> However, I would see empty output when something goes wrong.
>
> Is it possible to check error during syntax highlighting (i.e. take log)?
The filter's stderr stream may appear in the web server's log file.
I use a small Python program for experimenting with CGit, which will
forward stderr from the filter:
https://github.com/johnkeeping/git-instacgit
You can also simply run CGit in a terminal with a couple of environment
variables set, although this is not the most straightforward mechanism
to set up. See cgit_url() in tests/setup.sh for an example of this.
Regards,
John
prev parent reply other threads:[~2018-12-24 18:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-24 9:37 katsuya.horiuchi.biz
2018-12-24 18:02 ` john [this message]
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=20181224180252.GA2084@john.keeping.me.uk \
--to=cgit@lists.zx2c4.com \
/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).