-
-
Notifications
You must be signed in to change notification settings - Fork 98
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: On windows path gets resolved with error because all / get replaced with \ even in closing tokens #676
Comments
Hi @jtdLab 👋 What is the value of the |
Checkout the repo: https://github.com/jtdLab/mason_windows_failure Hint: the repo contains a github action run which illustrates the problem (mason generation fails on windows and completes on linux.) Hope that helps |
@felangel facing the same problem on Windows 10.
|
@jtdLab can you re-test using the master branch of mason and regenerate the bundle? |
@felangel im sry but looks like the error seems to be still around after regenerating the bundle. |
@felangel I think the error is caused by the Maximum Path Length Limitation in the Windows API |
@jtdLab apologies for the delay. I finally tried to reproduce the issue on a windows machine and was not able to reproduce using the latest version of mason. Can you please re-test using the latest version and let me know if this is still an issue for you? Thanks! |
@felangel i simplified the example at https://github.com/jtdLab/mason_windows_failure the action run illustrates the problem. |
@felangel Problem still persists after updating to Updated to 0.1.0-dev.50 |
@felangel any updates on this? |
@jtdLab apologies for the delay! I need to get my hands on a windows machine (should hopefully be able to pick one up this weekend). |
I'm facing a similar issue on Windows 10. I'm using mason's version 0.1.0-dev.50. Output of `mason add generate -g`PS > mason add generate -g
PathNotFoundException: Directory listing failed, path = 'C:\Users\BroadBand\AppData\Local\Mason\Cache\hosted\registry.brickhub.dev\generate_0.1.3\__brick__\{{#has_tests}}test\widgets\{{#is_schematic_widget}}{{name.snakeCase()}}\{{#needs_theme_for_widget}}{{name.snakeCase()}}_theme_test.dart{{\needs_theme_for_widget}}{{\*' (OS Error: The system cannot find the path specified.
, errno = 3) Output of `flutter doctor -v`
|
I just got a windows machine yesterday so I will finally look at this more closely later today. Sorry for the inconvenience! |
@felangel Doesn't |
* initial commit * adding missing tests * docs * Update bricks/dart_frog_prod_server/hooks/pre_gen.dart * Apply suggestions from code review Co-authored-by: Scarlett Eliza <[email protected]> * fix: docs format --------- Co-authored-by: Scarlett Eliza <[email protected]>
Any updates on this @felangel ? thanks |
Alright I think we have a related ticket on Steps to Reproduce
Pretty quickly you get the same error message
|
Awesome I’ll have a look asap, thanks! |
any progress on this? I am facing this issue on Windows 11. This is keeping us from using mason to install new bricks from github |
Description
/
that are part of the closing tokens aka{{/foo}}
get converted to a\
on windows when used in path.Steps To Reproduce
__brick__/{{#foo}}boom/baam/booz{{/foo}}/README.md
Expected Behavior
README.md should be generated at location
boom\baam\booz\
if foo is trueBut instead the
/
from{{/foo}}
gets convertet to a\
and leads to an errorOS Error: The system cannot find the path specified
The text was updated successfully, but these errors were encountered: