Skip to content

Fix runtime error when using pyparsing >= 3.0.2

Ever since this commit (https://github.com/pyparsing/pyparsing/commit/4ab17bb55) variant-schema-compiler has failed to execute when used by Flatpak like this: $ variant-schema-compiler/variant-schema-compiler --outfile-header common/flatpak-variant-private.h --outfile common/flatpak-variant-impl-private.h --prefix var ./data/flatpak-variants.gv

For some reason our use of leaveWhitespace() to ensure that a named type has a ' right before its name no longer works. But fortunately pyparsing has a Combine() which does exactly what we want.

See https://github.com/flatpak/flatpak/issues/4534

Fixes #4 (closed)

Merge request reports