-
Notifications
You must be signed in to change notification settings - Fork 406
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
ListItems are not compiled when included using a pattern parameter #457
Comments
Yep. Having the same issue issue (Pattern Lab Node |
+1 same here. |
Too bad this is still an issue. Any chance you can fix this? Patternlab version: atoms/icon.mustache
molecules/button.mustache
organisms/component.mustache
|
@bmuenzenmeyer Is this something I can help with? Had some people asking me about this specific bug … |
hey @raphaelokon I think these are two separate use cases here - so it's a bit much to unpack.
Either way, more careful processing of these nuances is needed... What I've tried to do is isolate test cases into their own files in a starterkit when PL PHP parity is a concern, and also of course have some unit test coverage. Which use case would you like to help with, or what are you most comfortable with between the two? Both entail isolating the bug in a failing unit test and then rolling up your sleeves into |
@bmuenzenmeyer I'd pickup the list item parsing one |
👍 feel free to ask any questions along with way here or on gitter |
Upgraded from |
ROFL 💯 |
@bmuenzenmeyer Can we have a proper test case for this? And I guess we want to land this in v2.9.x, correct? |
Hey @raphaelokon Not sure if you are asking me for steps to reproduce, the process I would undergo, or for a rundown of what I think the problem is from the OP, so I will give you my braindump approach. My first steps would be to attempt to recreate the OP's issue using the supplied patterns and circumstances, asking him directly for more information as needed. (It happened so long ago I cannot remember if I recreated it myself.) If I can recreate the issue in an instance of Pattern Lab, I then create a branch off of core with as reduced a test case as possible as fixtures, and attempt to create a failing unit test off of it. This is roughly what I did for #663 Let me know here or on gitter if that makes sense. |
@bmuenzenmeyer Yeah, sorry. I was asking myself if any of the list items tests already reflect the OPs issue. |
@raphaelokon np - I think that this issue exists it proof that the existing tests are not adequate. you will see some unit test coverage however inside |
@bmuenzenmeyer Aye. I pinged you on Gitter |
Cheers Brian. If you could amend the test case – I'd take it from there :-) |
@raphaelokon I will annotate that commit quick. |
this is still broken for me when running against actual files. and i have the following failed unit tests
|
Hmm … those tests are passing fine for me. I'll look into it … The failing tests (2-4) are because |
Seems like we are excluding the |
@bmuenzenmeyer Can we have a look into this one as well? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am using Pattern Lab Node
v2.4.0
onMac
, with Nodev6.2.2
, using theGulp
Edition.Expected Behavior
When a pattern containing a
listItems
loop is included in another pattern, the list loop should be printed out, even if some data are overwrite from the parent patternActual Behavior
The included pattern do not show the list
Steps to Reproduce
create a child pattern like this:
import the child pattern in a parent like this:
the parent pattern it will not contain the list
Here's a screenshot

The text was updated successfully, but these errors were encountered: