-
Notifications
You must be signed in to change notification settings - Fork 199
Behavior change in lstrip_blocks in Jinja 2.11.0 #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Jinja 2.11.0 got released a couple days ago, and it changed the behavior of lstrip_blocks. This breaks some templates. It's not yet clear if we misunderstood the lstrip_blocks documentation (and things were never expected to work that way), or if Jinja2 introduced a breaking change. Upstream bug report pallets/jinja#1138
9c08970
to
13faadf
Compare
I must say I'm still not super happy with jinja in general, but anyway, let's fix this first at least. |
Olof, is there some workaround possible for the jinja2 issue? Fedora 32 will be released with jinja 2.11.1 and thus making edalize/fusesoc uninstalable. |
This is scheduled to be fixed in an upcoming Jinja2 release, which hasn't happened yet unfortunately. In the meantime, I see a couple of options:
|
Or just get rid of that stupid jinja thing. I'm getting increasingly tired of it and it doesn't really add much value |
Jinja2 has now released 2.11.2 which fixed this regression, I'd expect Fedora can update to this point release in an update. |
already built for Rawhide and F-32 (https://bodhi.fedoraproject.org/updates/FEDORA-2020-3937030d54), F<=31 stay on 2.10 |
The new command `fusesoc dep graph` creates a GraphViz .dot file listing all dependencies for a given core with given flags. This file can be either manually converted into an image using the `dot` tool (part of the GraphViz package), or automatically converted with FuseSoC through the `--output-format` command line option. Full documentation: ``` $ fusesoc dep graph --help usage: fusesoc dep graph [-h] [--target TARGET] [--tool TOOL] [--output-format OUTPUT_FORMAT] core positional arguments: core Core to build the dependency graph for. optional arguments: -h, --help show this help message and exit --target TARGET Target to build the dependency graph for. --tool TOOL Tool to build the dependency graph for. --output-format OUTPUT_FORMAT Convert output into desired format (requires dot). All dot-supported formats can be used, run 'dot -T?' for a complete list. ``` Based on inital work by Stefan Wallentowitz in olofk#99 Fixes olofk#98
The new command `fusesoc dep graph` creates a GraphViz .dot file listing all dependencies for a given core with given flags. This file can be either manually converted into an image using the `dot` tool (part of the GraphViz package), or automatically converted with FuseSoC through the `--output-format` command line option. Full documentation: ``` $ fusesoc dep graph --help usage: fusesoc dep graph [-h] [--target TARGET] [--tool TOOL] [--output-format OUTPUT_FORMAT] core positional arguments: core Core to build the dependency graph for. optional arguments: -h, --help show this help message and exit --target TARGET Target to build the dependency graph for. --tool TOOL Tool to build the dependency graph for. --output-format OUTPUT_FORMAT Convert output into desired format (requires dot). All dot-supported formats can be used, run 'dot -T?' for a complete list. ``` Based on inital work by Stefan Wallentowitz in olofk#99 Fixes olofk#98
The new command `fusesoc dep graph` creates a GraphViz .dot file listing all dependencies for a given core with given flags. This file can be either manually converted into an image using the `dot` tool (part of the GraphViz package), or automatically converted with FuseSoC through the `--output-format` command line option. Full documentation: ``` $ fusesoc dep graph --help usage: fusesoc dep graph [-h] [--target TARGET] [--tool TOOL] [--output-format OUTPUT_FORMAT] core positional arguments: core Core to build the dependency graph for. optional arguments: -h, --help show this help message and exit --target TARGET Target to build the dependency graph for. --tool TOOL Tool to build the dependency graph for. --output-format OUTPUT_FORMAT Convert output into desired format (requires dot). All dot-supported formats can be used, run 'dot -T?' for a complete list. ``` Based on inital work by Stefan Wallentowitz in olofk#99 Fixes olofk#98
The new command `fusesoc dep graph` creates a GraphViz .dot file listing all dependencies for a given core with given flags. This file can be either manually converted into an image using the `dot` tool (part of the GraphViz package), or automatically converted with FuseSoC through the `--output-format` command line option. Full documentation: ``` $ fusesoc dep graph --help usage: fusesoc dep graph [-h] [--target TARGET] [--tool TOOL] [--output-format OUTPUT_FORMAT] core positional arguments: core Core to build the dependency graph for. optional arguments: -h, --help show this help message and exit --target TARGET Target to build the dependency graph for. --tool TOOL Tool to build the dependency graph for. --output-format OUTPUT_FORMAT Convert output into desired format (requires dot). All dot-supported formats can be used, run 'dot -T?' for a complete list. ``` Based on inital work by Stefan Wallentowitz in olofk#99 Fixes olofk#98
Jinja 2.11.0 got released a couple days ago, and it changed the behavior
of lstrip_blocks. This breaks some templates.
It's not yet clear if we misunderstood the lstrip_blocks documentation
(and things were never expected to work that way), or if Jinja2
introduced a breaking change.
Upstream bug report pallets/jinja#1138