Skip to content
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

Jinja2 errors - line context failure #2708

Closed
hjoliver opened this issue Jun 27, 2018 · 3 comments
Closed

Jinja2 errors - line context failure #2708

hjoliver opened this issue Jun 27, 2018 · 3 comments
Labels
bug Something is wrong :( duplicate This is a duplicate of something else

Comments

@hjoliver
Copy link
Member

Report from user. A suite.rc file contains a Jinja2 include-file:

{% include 'splat-template.rc' %}

There's a clash between Jinja2 and bash syntax in line 94 of the included splat-template.rc:

​   if [[ ${#ALT_DIR} -lt ${#MAIN_DIR} ]]; then

but validation incorrectly points to line 94 of the main file:

$ cylc validate suite.rc
Jinja2Error:
  File "<unknown>", line 94, in template
TemplateSyntaxError: Missing end of comment tag
Context lines:
{% set NWP_SLS_STASHLIST="" %}
{% set NWP_SLS_VARLIST="" %}
{% set NWP_STASH2CF_FILE="stash2cf.xml" %}
{% set NWP_UM_EXTN="" %}        <-- Jinja2Error  [this is suite.rc line 94]
@hjoliver hjoliver added the bug Something is wrong :( label Jun 27, 2018
@hjoliver hjoliver added this to the soon milestone Jun 27, 2018
@hjoliver
Copy link
Member Author

See also #2572

@matthewrmshin matthewrmshin modified the milestones: soon, cylc-8.0.0 Aug 28, 2019
@hjoliver hjoliver added the duplicate This is a duplicate of something else label Nov 29, 2019
@hjoliver
Copy link
Member Author

Closing as (almost certainly?) duplicate of #2572

@hjoliver hjoliver modified the milestones: cylc-8.0.0, never Jan 22, 2020
@oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders removed this from the never milestone Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( duplicate This is a duplicate of something else
Projects
None yet
Development

No branches or pull requests

3 participants