buggins / dlangide

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

latest d failed to compile on win 64 bits #411

Open retsyo opened 5 years ago

retsyo commented 5 years ago

The D is official http://downloads.dlang.org/releases/2.x/2.087.0/dmd.2.087.0.windows.7z from https://dlang.org/download.html The dlangide is latest download zip dlangide-master.zip


R:\dlangide-master>dub run --build=release --arch=x86_64 dlangide
# or 
# dub run --build=release --arch=x86_mscoff dlangide

Building package dlangide in R:\dlangide-master\
Running pre-generate commands for dcd...
Performing "release" build using l:\prg\D\dmd2\windows\bin\dmd.exe for x86_64.
stdx-allocator 2.77.5: building configuration "library"...
emsi_containers 0.8.0-alpha.15: building configuration "library"...
libdparse 0.9.10: building configuration "library"...
dsymbol 0.4.8: building configuration "library"...
C:\Users\oyster\AppData\Local\dub\packages\dsymbol-0.4.8\dsymbol\src\dsymbol\symbol.d(198,10): Deprecation: Cannot use alias this to partially initialize variable part of type SymbolOwnership. Use part.ptr
msgpack-d 1.0.0-beta.8: building configuration "library"...
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(849,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(849,14): Deprecation: enum member `std.json.JSONType.NULL` is deprecated - Use .null_
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(850,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(850,14): Deprecation: enum member `std.json.JSONType.TRUE` is deprecated - Use .true_
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(851,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(851,14): Deprecation: enum member `std.json.JSONType.FALSE` is deprecated - Use .false_
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(852,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(852,14): Deprecation: enum member `std.json.JSONType.UINTEGER` is deprecated - Use .uinteger
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(853,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(853,14): Deprecation: enum member `std.json.JSONType.INTEGER` is deprecated - Use .integer
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(854,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(854,14): Deprecation: enum member `std.json.JSONType.FLOAT` is deprecated - Use .float_
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(855,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(855,14): Deprecation: enum member `std.json.JSONType.STRING` is deprecated - Use .string
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(856,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(856,14): Deprecation: enum member `std.json.JSONType.ARRAY` is deprecated - Use .array
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(862,14): Deprecation: alias `std.json.JSON_TYPE` is deprecated - Use JSONType
C:\Users\oyster\AppData\Local\dub\packages\msgpack-d-1.0.0-beta.8\msgpack-d\src\msgpack\value.d(862,14): Deprecation: enum member `std.json.JSONType.OBJECT` is deprecated - Use .object
dcd 0.9.13: building configuration "library"...
C:\Users\oyster\AppData\Local\dub\packages\dsymbol-0.4.8\dsymbol\src\dsymbol\symbol.d(198,10): Deprecation: Cannot use alias this to partially initialize variable part of type SymbolOwnership. Use part.ptr
derelict-util 3.0.0-beta.2: building configuration "library"...
derelict-ft 2.0.0-beta.5: building configuration "library"...
derelict-gl3 2.0.0-beta.8: building configuration "library"...
derelict-sdl2 3.0.0-beta.8: building configuration "derelict-sdl2-dynamic"...
dlangui 0.9.182: building configuration "default"...
C:\Users\oyster\AppData\Local\dub\packages\dlangui-0.9.182\dlangui\src\dlangui\graphics\ftfonts.d(541,9): Deprecation: foreach: loop index implicitly converted from size_t to int
C:\Users\oyster\AppData\Local\dub\packages\dlangui-0.9.182\dlangui\src\dlangui\widgets\editors.d(3447,9): Deprecation: foreach: loop index implicitly converted from size_t to int
C:\Users\oyster\AppData\Local\dub\packages\dlangui-0.9.182\dlangui\src\dlangui\widgets\editors.d(3797,21): Deprecation: foreach: loop index implicitly converted from size_t to int
dlangide ~master: building configuration "default"...
src\dlangide\tools\d\dcdinterface.d(241,34): Deprecation: function `dcd.common.messages.AutocompleteResponse.docComments` is deprecated - use completions[].documentation + escapeConsoleOutputString instead
src\dlangide\tools\d\dcdinterface.d(322,25): Deprecation: function `dcd.common.messages.AutocompleteResponse.completionKinds` is deprecated - use completions[].kind instead
src\dlangide\tools\d\dcdinterface.d(323,28): Deprecation: function `dcd.common.messages.AutocompleteResponse.completionKinds` is deprecated - use completions[].kind instead
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation: function `dcd.common.messages.AutocompleteResponse.Completion.compatibilityContent` is deprecated - Use identifier (or definition for calltips) instead
src\dlangide\ui\dsourceedit.d(793,9): Deprecation: foreach: loop index implicitly converted from size_t to int
src\dlangide\ui\searchPanel.d(375,5): Deprecation: foreach: loop index implicitly converted from size_t to int
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\functional.d-mixin-215(215,35): Error: undefined identifier ascii in package std, perhaps add static import std.ascii;
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3718,28): Error: template instance `std.functional.F!(" a && (b == '_' || b == '-' || std.ascii.isAlphaNum(b)) ", "a", "b").binaryFun!(bool, dchar)` error instantiating
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3682,32):        instantiated from here: reduceImpl!(false, string, bool)
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3666,33):        instantiated from here: reducePreImpl!(string, bool)
src\dlangide\workspace\project.d(937,78):        instantiated from here: reduce!(bool, string)
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\functional.d-mixin-215(215,23): Error: undefined identifier ascii in package std, perhaps add static import std.ascii;
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3718,28): Error: template instance `std.functional.F!(" a && (b == '_' || std.ascii.isAlphaNum(b)) ", "a", "b").binaryFun!(bool, dchar)` error instantiating
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3682,32):        instantiated from here: reduceImpl!(false, string, bool)
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3666,33):        instantiated from here: reducePreImpl!(string, bool)
src\dlangide\workspace\project.d(943,66):        instantiated from here: reduce!(bool, string)
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\functional.d-mixin-215(215,47): Error: undefined identifier ascii in package std, perhaps add static import std.ascii;
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3718,28): Error: template instance `std.functional.F!(" a && (b == '_' || b == '.' || b == '-' || std.ascii.isAlphaNum(b)) ", "a", "b").binaryFun!(bool, dchar)` error instantiating
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3682,32):        instantiated from here: reduceImpl!(false, string, bool)
l:\prg\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(3666,33):        instantiated from here: reducePreImpl!(string, bool)
src\dlangide\workspace\project.d(949,90):        instantiated from here: reduce!(bool, string)
l:\prg\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
fvacek commented 5 years ago

Same problem on Linux

jaffa4 commented 5 years ago

change to this in project.d file

bool isValidProjectName(in string s) pure { if (s.empty) return false; return reduce!q{ a && (b == '_' || b == '-' || (b>='A' && b <='Z' || b>='a' && b <='z' || b>='0' && b <='9')) }(true, s); }

bool isValidModuleName(in string s) pure { if (s.empty) return false; return reduce!q{ a && (b == '_' || (b>='A' && b <='Z' || b>='a' && b <='z' || b>='0' && b <='9')) }(true, s); }

bool isValidFileName(in string s) pure { if (s.empty) return false; return reduce!q{ a && (b == '_' || b == '.' || b == '-' || (b>='A' && b <='Z' || b>='a' && b <='z' || b>='0' && b <='9')) }(true, s); }