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

Block parser mismatched with jinja: docs blocks #2241

Closed
drewbanin opened this issue Mar 25, 2020 · 0 comments
Closed

Block parser mismatched with jinja: docs blocks #2241

drewbanin opened this issue Mar 25, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@drewbanin
Copy link
Contributor

Describe the bug

I don't totally understand the nature of this error, but it appears to be an internal error. Given a .md file like:

{%- docs doc1 -%}

    {% raw %}

    ```sql
        {{ doc_ex_1(date_column='i.date_sk', time_column='i.time_sk') }}
    ```

    {% endraw %}

{%- enddocs -%}


{%- docs doc2 -%}

    {% raw %}

    ```sql
        {{ doc_ex_2(date_column='i.date_sk', time_column='i.time_sk') }}
    ```

    {% endraw %}

{%- enddocs -%}

Calling dbt docs generate will result in:

Got 2 docs in an extracted docs block: block parser mismatched with jinja

I think this might have something to do with the raw tags in this example file.

The output of dbt --version:

0.16.0
@drewbanin drewbanin added the bug Something isn't working label Mar 25, 2020
@drewbanin drewbanin added this to the 0.16.1 milestone Mar 25, 2020
beckjake added a commit that referenced this issue Apr 1, 2020
…dding

Make the contents of the raw blocks regex pattern non-greedy (#2241)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant