GithubHelp home page GithubHelp logo

Comments (6)

johncblandii avatar johncblandii commented on May 24, 2024

Bump.

from pygments.rb.

FranklinChen avatar FranklinChen commented on May 24, 2024

I was getting this also, and found out what the problem was, once I read the source, found popen.rb, and and set the MENTOS_LOG environment variable: my machine was under heavy load from a background process and mentos timed out. I simply edited my copy of popen.rb in my installed gems directory to increase timeout_time to a big number, and then pygments.rb worked again.

from pygments.rb.

bluesmoon avatar bluesmoon commented on May 24, 2024

I see the same problem. My system is not under any load at all.

from pygments.rb.

FranklinChen avatar FranklinChen commented on May 24, 2024

e0ed7f7 allows you to bypass the timeout problem that I wrote about in http://conscientiousprogrammer.com/blog/2013/06/29/nil-non-determinism-exceptions/

from pygments.rb.

stomar avatar stomar commented on May 24, 2024

We've got the same problem when generating the "Jekyll powered" www.ruby-lang.org site (with over one thousand highlighted code snippets).

I've seen failing site builds with meaningless error messages for quite a long time on my (a little aged) machine, but did not investigate further. Since yesterday we let Travis test the builds, and already the third or fourth build failed, see ruby/www.ruby-lang.org#682.

It took me quite some time to trace the problem down to Pygments and its unexpected (and not documented) timeout behaviour.

Increasing MENTOS_TIMEOUT is a solution that offers itself only to the users that are aware of the actual problem. So please consider changing this completely unexpected (= exceptional...) behaviour of returning nil into something more easily to debug.

from pygments.rb.

stomar avatar stomar commented on May 24, 2024

Jekyll is going to deal with the unexpected return value on their side, see jekyll/jekyll#2148. I still think the exception should be raised by Pygments itself, though...

cc @FranklinChen

from pygments.rb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.