highlight extension hanging

Ralf Schmitt schmir at gmail.com
Tue Mar 25 10:22:20 CDT 2008


On Tue, Mar 25, 2008 at 4:11 PM, Benoît Allard <benoit at aeteurope.nl> wrote:

> > hg serve is then running at 100 % CPU. I've stopped it after 5 minutes.
> > Running pygmentize on the Collection.i18n.php file works without
> problems...
>
> Did not tried it much, but I got the same behavior, attached patch
> (exported via "export" ;-) ) avoid it hanging, and fix a (I guess)
> backward compatibility issue with pygments 0.5.1-1 (debian stable).
>
> Thanks so far
>
> Regards
> Benoit
>
> # HG changeset patch
> # User Benoit Allard <benoit at aeteurope.nl>
> # Date 1206456852 -3600
> # Node ID 00a86bb551b1a5331cb0445df914f4b1da10426e
> # Parent  7d68ac898539d4f9e5de07972e240cca3a599d14
> On Debian stable, pygments is version 0.5.1-1 and raise a ValueError
> guess_lexer is way too slow to be usable.
>

if that is the problem, maybe only looking at the first N bytes could also
solve it...
I will try that...


- Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080325/bff98e97/attachment.htm 


More information about the Mercurial mailing list