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

fix: Generating files from array not working #1267

Open
andrespd99 opened this issue Mar 6, 2024 · 6 comments
Open

fix: Generating files from array not working #1267

andrespd99 opened this issue Mar 6, 2024 · 6 comments
Assignees
Labels
question Further information is requested waiting for response Waiting for additional information

Comments

@andrespd99
Copy link

As stated above, I'm unable to generate an array of files following the same structure as the todo example

This is the string I'm using to generate the file list:

{{#branches}}{{#snakeCase}}{{{.}}}{{/snakeCase}}_branch.dart{{/branches}}

This is the result
image

When using double moustache dot {{.}} instead of triple moustache {{{.}}}, I get the following result:

image

This is the closest I got, but well... The picture talks for itself.

What am I doing wrong? I'm sure I'm following the same pattern as in the todos example.

@andrespd99 andrespd99 added the bug Something isn't working label Mar 6, 2024
@felangel
Copy link
Owner

felangel commented Mar 7, 2024

Hi @andrespd99 👋
Can you please share a link to a minimal reproduction sample and I’m happy to take a closer look and provide any suggestions, thanks!

@felangel felangel added question Further information is requested waiting for response Waiting for additional information and removed bug Something isn't working labels Mar 7, 2024
@felangel felangel self-assigned this Mar 7, 2024
@andrespd99
Copy link
Author

andrespd99 commented Mar 7, 2024

Hi @felangel !

Sure, here's the link to the brick's codebase.

This is the path to the template failing to generate

@felangel
Copy link
Owner

felangel commented Mar 7, 2024

Hi @felangel !

Sure, here's the link to the brick's codebase.

This is the path to the template failing to generate

Thanks, I’ll have a look later today.

@felangel felangel added investigating Investigating a reported issue and removed waiting for response Waiting for additional information labels Mar 7, 2024
@andrespd99
Copy link
Author

Hello again, @felangel 👋

Did you get to look at it?

@andrespd99
Copy link
Author

Hi @felangel ! I wanted to know if you could look at it. I'm not sure if this is a bug, or I'm missing something. Sorry for the trouble

@felangel
Copy link
Owner

Hi @andrespd99 are you able to create a simpler reproduction sample that just includes the relevant code to illustrate the issue? It would be much easier to help if I could look at a reduced version. Does the todo example work for you locally?

@felangel felangel added waiting for response Waiting for additional information and removed investigating Investigating a reported issue labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested waiting for response Waiting for additional information
Projects
None yet
Development

No branches or pull requests

2 participants