[all][requirements] Pygments 2.8.0 break console blocks

Dmitriy Rabotyagov noonedeadpunk at ya.ru
Thu Feb 18 20:41:18 UTC 2021


Hi!

After recent upper-constraints bump [1] which upgraded Pygments to version 2.8.0 we got our docs tests broken because of the console blocks [2].
So CI started failing with "Could not lex literal_block as "console". Highlighting skipped."

While I can kind of understand some of the issues, with a misleading quotes (while they're fine in bash) some are totally weird. For example it starts complaining on this [3].

I'm not sure if it's intended behaviour of Pygments with 2.8.0 and pretty ok to fix the docs, but I'm not sure I understand the issue here... It feels more like Pygments issue atm. And changelog [4] is pretty excessive...



[1] https://opendev.org/openstack/requirements/commit/673ce445d54f8bdf792550e2d9cfdf23bffa5f83
[2] https://zuul.opendev.org/t/openstack/build/6eea1a7099824c90a533b57c1281d478/log/job-output.txt#2858
[3] https://opendev.org/openstack/openstack-ansible/src/branch/master/doc/source/admin/scale-environment.rst#L345
[4] https://pygments.org/docs/changelog/#version-2-8-0

--
Kind regards,
Dmitriy




More information about the openstack-discuss mailing list