-
-
Notifications
You must be signed in to change notification settings - Fork 15
Error writing file #21
Comments
Try deleting the dub dependencies where it fails from |
Of course I tried |
ok I finally found out why this happens! It's because dub tries to write the file to a path that is longer than the maximum file path length windows accepts. In my case this was:
This path is 276 characters long but IIRC windows paths can be at most 240 characters. However there is some extended file path mode which dub isnt using. So this issue happens because of dub and because the temporary folder is too long. I could instead write to C:\tmp\workspace-d-123456 but there might be issues there with protection |
So right now the installer for DCD and dfmt is broken because of that package and the long name. Depending on your username it might also be broken for Dscanner. You need to manually install these packages while there is no fix for that |
I will make the install path a bit shorter and that should fix it for some people. Otherwise we need to wait for dub/dmd to use Windows' extended file paths. I made an issue on dub for this already: dlang/dub#911 |
gonna close because this is most likely already no longer an issue with modern dub reopen if you still experience an issue |
Same problem when selected option 3 (dfmt)
Windows 7 x64
DUB version 1.0.0, built on Jun 20 2016
LDC - the LLVM D compiler (1.0.0)
DMD32 D Compiler v2.071.1
The text was updated successfully, but these errors were encountered: