I recently switched my automated deployment from Wercker to Travis. I’ve now realised, that there is no code rendered in the output.
I’ve substituted the resulting index.html with one rendered on my Mac. Anyway, the resulting file looked like this one here, which I had rendered during my tests.
pygmentize -V answers with Pygments version 2.2.0, (c) 2006-2017 by Georg Brandl and I’ve seen no warning or error from hugo that seems to be related to this issue in the build log.
Would be happy for some hints how to get the cause of the underlying problem.
I have not used Pygments on Travis, but it works fine on CircleCI, Netlify etc. But I do remember having an issue with Pygments 2.2, which is why we have this:
We should look into the issue with 2.2 (could you create an issue on GitHub?) and try to not fail so silently.
I just wanted to confirm whether it is an issue with Pygments 2.2.0 on all platforms, or just Pygments 2.2.0 with Travis CI?
I could not reproduce the “no code output” with the example at Syntax highlighting | Hugo with Pygments 2.2.0 running on Debian (amd64). It ran just fine here, so either the example is too simple, or it the problem is Travis specific?
it’s 2.2.0 indeed on my Mac. Sorry for being imprecise. I was so happy to have got a solution that I never checked back.
Travis was using Ubuntu 12.04.5 LTS during my attempts.
As a side note: My initial attempt was by using packages. Which resulted in installation of pygments version 1.4. Hugo failed silently also with pygments 1.4.