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: Lambdas on windows do not work #59

Closed
YazeedAlKhalaf opened this issue Jun 1, 2021 · 4 comments · Fixed by #58
Closed

fix: Lambdas on windows do not work #59

YazeedAlKhalaf opened this issue Jun 1, 2021 · 4 comments · Fixed by #58
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@YazeedAlKhalaf
Copy link

YazeedAlKhalaf commented Jun 1, 2021

Description
On Windows I can't use lambdas in file names

Steps To Reproduce

Follow the steps in this blog post to create a custom widget brick https://verygood.ventures/blog/code-generation-with-mason

Expected Behavior

Should work fine but seems I can't create a file on Windows that has a slash in the name 🤷‍♂️😢

Maybe use double hashtags to close the lambda?

like this: {{#snakeCase}}{{name}}{{##snakeCase}}.dart
instead of this right now: {{#snakeCase}}{{name}}{{/snakeCase}}.dart
?
Screenshots
image

When making the brick it gives this error
image

@YazeedAlKhalaf YazeedAlKhalaf added the bug Something isn't working label Jun 1, 2021
@YazeedAlKhalaf YazeedAlKhalaf changed the title fix: Lambdas on windows do not work because of the closing syntax fix: Lambdas on windows do not work Jun 1, 2021
@felangel
Copy link
Owner

felangel commented Jun 1, 2021

Hi @YazeedAlKhalaf 👋
Thanks for opening an issue!

This is related to #56 and will be resolved via #58 shortly 👍

@felangel felangel added the duplicate This issue or pull request already exists label Jun 1, 2021
@felangel felangel self-assigned this Jun 1, 2021
@felangel
Copy link
Owner

felangel commented Jun 2, 2021

This has been addressed via #58 and is available via 0.0.1-dev.32. You shouldn't need to change anything except upgrade via dart pub global activate mason 👍

@felangel felangel closed this as completed Jun 2, 2021
@YazeedAlKhalaf
Copy link
Author

@felangel Thanks a lot!

It works now like a charm!
btw I want to use mason to create a boiler plate generator for my apps. When I create a flutter app I always repeat certain stuff. I made a VS Code package but would like to try mason and get used to it! Do you recommend using the package for boiler plate code generation?

@felangel
Copy link
Owner

felangel commented Jun 2, 2021

@felangel Thanks a lot!

It works now like a charm!
btw I want to use mason to create a boiler plate generator for my apps. When I create a flutter app I always repeat certain stuff. I made a VS Code package but would like to try mason and get used to it! Do you recommend using the package for boiler plate code generation?

Awesome! Yeah definitely! The goal was to make it easier to generate code and allow developers and teams to make their own templates based on their needs 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants