Skip to content

Long paths within file tree break compile #39

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

Open
Joeyrsp opened this issue Feb 22, 2022 · 0 comments
Open

Long paths within file tree break compile #39

Joeyrsp opened this issue Feb 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Joeyrsp
Copy link

Joeyrsp commented Feb 22, 2022

Describe the bug
Running tweego on a folder with deeply nested children or a very long name results in an error and fails the process.
Presumably related to the old windows max path length restriction of ~255.

To Reproduce

  1. Take any working twee project folder.
  2. Create a folder or set of folders with sufficiently long names (e.g. ./abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz)
  3. Run tweego (e.g. tweego -o "../index.html" .)
  4. Receive error: warning: path .: CreateFile abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz: The system cannot find the path specified.

Expected behavior
There should be no errors and it should succeed.

Desktop (please complete the following information):

  • Tweego Version: 2.1.1+81d1d71
  • OS & Version: Windows 10
@Joeyrsp Joeyrsp added the bug Something isn't working label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant