-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Long file paths crash compilation on windows #911
Comments
Another issue which probably has the same cause:
|
Workaround for Windows 10: in the registry set |
I think it's useful to use the long path tool program |
Optlink can surely be added to the list, too. I think the DUB fix for this should happen in Phobos. There is no reason to let this ugly piece of WinAPI design leak through to all application code in a cross platform environment. |
Just mentioning that a tiny improvement to this has been merged: #1242 |
fixed by #2589 |
When I compile my dub package in a nested folder somewhere in like
C:\Users\MyUsername\Development\My_D_Projects\From2016\Old\my-super-awesome-project-with-some-long-filename
and I have some dependency in it likeexperimental_allocator
it will crash with this error message:On Windows there is by default a file path length limit of 259 characters and either dub or dmd aren't using the extended windows paths using
\\?\
which increases the length limit to 32767 characters. So Windows doesnt allow you to write the file.Reproducable project in my case:
crash
The text was updated successfully, but these errors were encountered: