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

Liquid Error: Snippet content is not properly extracted #334

Closed
isamu-tanaka opened this issue Apr 21, 2017 · 3 comments
Closed

Liquid Error: Snippet content is not properly extracted #334

isamu-tanaka opened this issue Apr 21, 2017 · 3 comments
Assignees

Comments

@isamu-tanaka
Copy link
Contributor

Several files like https://docs.mendix.com/refguide7/new-button show an error message below:
Liquid error: undefined method `[]’ for nil:NilClass

And, its snippet content is not shown. I don't know why.

@jandevriesmendix
Copy link
Collaborator

Thanks @isamu-tanaka, we're going to look into this as soon as possible. The snippet content is shown below the error, so that's good. We'll have to find out why it's showing this error.

@JelteMX Can you please take a look at this?

@isamu-tanaka
Copy link
Contributor Author

Hi, @jandevriesmendix
It seems that a snippet cannot import sub-snippet.
A possible solution for container.md is, for example:

CURRENT CODE:
container.md:
{% snippet Visibility+Property+With+Module+Roles+Simple.md %} <--- error

Visibility+Property+With+Module+Roles+Simple.md:
{% snippet Visibility+Property.md %} <--- error

Visibility+Property.md:
Everything is OK

SOLUTION:
container.md:
{% snippet Visibility+Property.md %}

{% snippet Visibility+Property+With+Module+Roles+Simple.md %}

Visibility+Property+With+Module+Roles+Simple.md:

(remove Visibility+Property+With+Module+Roles+Simple.md)

Visibility+Property.md:
(same)

@JelteMX
Copy link
Contributor

JelteMX commented Apr 24, 2017

I'll have a look at it. Build errors should show up, not sure why this wasn't caught in the build. Thanks for the solution

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

No branches or pull requests

3 participants