Skip to content

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

Merged
merged 1 commit into from
Feb 4, 2020

Conversation

imphil
Copy link
Collaborator

@imphil imphil commented Jan 29, 2020

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

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
@imphil imphil force-pushed the jinja-lstrip-blocks-workaround branch from 9c08970 to 13faadf Compare January 29, 2020 13:20
@imphil imphil changed the title Behavior chnage in lstrip_blocks in Jinja 2.11.0 Behavior change in lstrip_blocks in Jinja 2.11.0 Jan 29, 2020
@imphil imphil requested a review from olofk January 29, 2020 13:21
@olofk olofk merged commit 05b9ee5 into olofk:master Feb 4, 2020
@olofk
Copy link
Owner

olofk commented Feb 4, 2020

I must say I'm still not super happy with jinja in general, but anyway, let's fix this first at least.

@sharkcz
Copy link

sharkcz commented Mar 26, 2020

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.

@imphil
Copy link
Collaborator Author

imphil commented Mar 26, 2020

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:

@imphil imphil deleted the jinja-lstrip-blocks-workaround branch March 26, 2020 10:43
@olofk
Copy link
Owner

olofk commented Mar 26, 2020

Or just get rid of that stupid jinja thing. I'm getting increasingly tired of it and it doesn't really add much value

@imphil
Copy link
Collaborator Author

imphil commented Apr 16, 2020

Jinja2 has now released 2.11.2 which fixed this regression, I'd expect Fedora can update to this point release in an update.

@sharkcz
Copy link

sharkcz commented Apr 16, 2020

already built for Rawhide and F-32 (https://bodhi.fedoraproject.org/updates/FEDORA-2020-3937030d54), F<=31 stay on 2.10

bwitherspoon pushed a commit to bwitherspoon/edalize that referenced this pull request Dec 17, 2023
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
bwitherspoon pushed a commit to bwitherspoon/edalize that referenced this pull request Dec 17, 2023
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
bwitherspoon pushed a commit to bwitherspoon/edalize that referenced this pull request Dec 17, 2023
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
bwitherspoon pushed a commit to bwitherspoon/edalize that referenced this pull request Dec 17, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants