buggins / dlangide

D language IDE based on DlangUI
Boost Software License 1.0
454 stars 57 forks source link

0.8.17 Build fails with DMD on Windows 10 #408

Closed Enkouyami closed 5 years ago

Enkouyami commented 5 years ago

Build 0.8.17 on windows 10 v1803 with DUB v1.11.0 and DMD v2.086.0. I tried

PS C:\Users\Enkou\Downloads> git clone --recursive https://github.com/buggins/dlangide.git
...
PS C:\Users\Enkou\Downloads> cd .\dlangide\
PS C:\Users\Enkou\Downloads\dlangide> dub build --arch=x86_64
Invalid source/import path: C:\Users\Enkou\AppData\Local\dub\packages\dcd-0.9.13\dcd\bin
Running pre-generate commands for dcd...
C:\Users\Enkou\AppData\Local\Temp\.rdmd\eval.FD8DD35A84FAB0C50B3E726A3A1333F3.d(18): Error: no property 'toFile' for type 'string'
Failed: ["dmd", "-v", "-o-", "C:\\Users\\Enkou\\AppData\\Local\\Temp\\.rdmd\\eval.FD8DD35A84FAB0C50B3E726A3A1333F3.d", "-IC:\\Users\\Enkou\\AppData\\Local\\Temp\\.rdmd"]
Command failed with exit code 1: rdmd --eval="auto dir=environment.get(\"DUB_PACKAGE_DIR\"); dir.buildPath(\"bin\").mkdirRecurse; auto gitVer = (\"git -C \"~dir~\" describe --tags\").executeShell; (gitVer.status == 0 ? gitVer.output.strip : \"v\" ~ dir.dirName.baseName.findSplitAfter(environment.get(\"DUB_ROOT_PACKAGE\")~\"-\")[1]).ifThrown(\"0.0.0\").chain(newline).to!string.toFile(dir.buildPath(\"bin\", \"dubhash.txt\"));"
PS C:\Users\Enkou\Downloads\dlangide> dub build
Invalid source/import path: C:\Users\Enkou\AppData\Local\dub\packages\dcd-0.9.13\dcd\bin
Running pre-generate commands for dcd...
C:\Users\Enkou\AppData\Local\Temp\.rdmd\eval.FD8DD35A84FAB0C50B3E726A3A1333F3.d(18): Error: no property 'toFile' for type 'string'
Failed: ["dmd", "-v", "-o-", "C:\\Users\\Enkou\\AppData\\Local\\Temp\\.rdmd\\eval.FD8DD35A84FAB0C50B3E726A3A1333F3.d", "-IC:\\Users\\Enkou\\AppData\\Local\\Temp\\.rdmd"]
Command failed with exit code 1: rdmd --eval="auto dir=environment.get(\"DUB_PACKAGE_DIR\"); dir.buildPath(\"bin\").mkdirRecurse; auto gitVer = (\"git -C \"~dir~\" describe --tags\").executeShell; (gitVer.status == 0 ? gitVer.output.strip : \"v\" ~ dir.dirName.baseName.findSplitAfter(environment.get(\"DUB_ROOT_PACKAGE\")~\"-\")[1]).ifThrown(\"0.0.0\").chain(newline).to!string.toFile(dir.buildPath(\"bin\", \"dubhash.txt\"));"

I also did dub clean-caches and dub build --force, but got the same result.

Enkouyami commented 5 years ago

Bug #394 also has the Invalid source/import path problem for dcd, so mine is probably a duplicate.

Enkouyami commented 5 years ago

I also tried building from leh103's version on git that has pull request #406, and that wasn't a fix for this issue.

Enkouyami commented 5 years ago

My discalcula got the best of me; my path had dynamic-debug-windows-x86-dmd_2068 instead of dmd version 2086. I fixed that and it runs fine.