www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Dub Packages not working with lastest DMD

reply Jolly James <j.james jmail.com> writes:
A lot (if not all) dub packages by Brian Schott (Hackerpilot) do 
not compile using the latest stable DMD. Maybe someone can fix 
these or tell Brian.

In order to use them I had to downgrade to DMD v2.071.2.

The errors look like:

 dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allo
ator\package.d(322, 13):

Error: std.experimental.allocator.common.Ternary at

dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\al
ocator\common.d(14, 1)

conflicts with std.typecons.Ternary at [...]
And as his DCD is required for almost all plugins for generic text editors (VSCode, IntelliJ) to support D, this is a great problem.
Feb 18
next sibling parent lawrence <lawrence.hemsley gmail.com> writes:
On 02/18/2017 12:20 PM, Jolly James wrote:

This problem happens because the std.experimental.allocator.common file 
and the std.typecons file both define a Ternary struct and the 
std.experimental.allocator.package file imports both of this files.
The short term solution is to open the package.d file in you dub 
packages ... folder and fully qualify every usage of the Ternary 
identifier with std.experimental.allocator.common.Ternary instead of 
"Ternary" with find & replace.

Both Ternary definition seem identical to me but you can not fully 
qualify them with std.typecons.Ternary because the last two usages 
require the definition in the common.d file for some reason I got two 
new errors when I tried that.

The long term solution would be for either Andrei or Brian to rename 
their Ternary stucts, as Andrei points out it does of other names such 
as Trinary. I suppose also that Brian could decide which Ternary 
definition he wants to use, instead of importing both although he may 
need other things is both imports besides Ternary.

 A lot (if not all) dub packages by Brian Schott (Hackerpilot) do not
 compile using the latest stable DMD. Maybe someone can fix these or tell
 Brian.

 In order to use them I had to downgrade to DMD v2.071.2.

 The errors look like:

 dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allocator\package.d(322,
 13):

 Error: std.experimental.allocator.common.Ternary at

 dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allocator\common.d(14,
 1)

 conflicts with std.typecons.Ternary at [...]
And as his DCD is required for almost all plugins for generic text editors (VSCode, IntelliJ) to support D, this is a great problem.
Feb 18
prev sibling parent reply Seb <seb wilzba.ch> writes:
On Saturday, 18 February 2017 at 19:20:29 UTC, Jolly James wrote:
 A lot (if not all) dub packages by Brian Schott (Hackerpilot) 
 do not compile using the latest stable DMD. Maybe someone can 
 fix these or tell Brian.

 In order to use them I had to downgrade to DMD v2.071.2.

 The errors look like:

 dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allo
ator\package.d(322, 13):

Error: std.experimental.allocator.common.Ternary at

dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\al
ocator\common.d(14, 1)

conflicts with std.typecons.Ternary at [...]
And as his DCD is required for almost all plugins for generic text editors (VSCode, IntelliJ) to support D, this is a great problem.
What version do you use? Std_experimental_allocator has been removed from libdparse this summer (!). Maybe you have a hard-coded version somewhere?
Feb 21
parent reply Lenny Lowood <lo wood.as> writes:
On Tuesday, 21 February 2017 at 08:34:57 UTC, Seb wrote:
 On Saturday, 18 February 2017 at 19:20:29 UTC, Jolly James 
 wrote:
 A lot (if not all) dub packages by Brian Schott (Hackerpilot) 
 do not compile using the latest stable DMD. Maybe someone can 
 fix these or tell Brian.

 In order to use them I had to downgrade to DMD v2.071.2.

 The errors look like:

[...]
And as his DCD is required for almost all plugins for generic text editors (VSCode, IntelliJ) to support D, this is a great problem.
What version do you use? Std_experimental_allocator has been removed from libdparse this summer (!). Maybe you have a hard-coded version somewhere?
probably a simple `dub fetch dcd`? seems to be v0.8
Feb 21
parent reply Seb <seb wilzba.ch> writes:
On Tuesday, 21 February 2017 at 22:43:36 UTC, Lenny Lowood wrote:
 On Tuesday, 21 February 2017 at 08:34:57 UTC, Seb wrote:
 On Saturday, 18 February 2017 at 19:20:29 UTC, Jolly James 
 wrote:
 A lot (if not all) dub packages by Brian Schott (Hackerpilot) 
 do not compile using the latest stable DMD. Maybe someone can 
 fix these or tell Brian.

 In order to use them I had to downgrade to DMD v2.071.2.

 The errors look like:

[...]
And as his DCD is required for almost all plugins for generic text editors (VSCode, IntelliJ) to support D, this is a great problem.
What version do you use? Std_experimental_allocator has been removed from libdparse this summer (!). Maybe you have a hard-coded version somewhere?
probably a simple `dub fetch dcd`? seems to be v0.8
I'm not sure whether you are the original author, but please provide the full dub build log (use -v). I rather certain that the error will manifest there.
Feb 21
parent Jolly James <j.j jmail.com> writes:
On Tuesday, 21 February 2017 at 22:48:12 UTC, Seb wrote:
 On Tuesday, 21 February 2017 at 22:43:36 UTC, Lenny Lowood 
 wrote:
 On Tuesday, 21 February 2017 at 08:34:57 UTC, Seb wrote:
 On Saturday, 18 February 2017 at 19:20:29 UTC, Jolly James 
 wrote:
 A lot (if not all) dub packages by Brian Schott 
 (Hackerpilot) do not compile using the latest stable DMD. 
 Maybe someone can fix these or tell Brian.

 In order to use them I had to downgrade to DMD v2.071.2.

 The errors look like:

[...]
And as his DCD is required for almost all plugins for generic text editors (VSCode, IntelliJ) to support D, this is a great problem.
What version do you use? Std_experimental_allocator has been removed from libdparse this summer (!). Maybe you have a hard-coded version somewhere?
probably a simple `dub fetch dcd`? seems to be v0.8
I'm not sure whether you are the original author, but please provide the full dub build log (use -v). I rather certain that the error will manifest there.
Using dub registry url 'http://code.dlang.org/' Refreshing local packages (refresh existing: true)... Looking for local package map at C:\ProgramData\dub\packages\local-packages.json Looking for local package map at C:\Users\jolly\AppData\Roaming\dub\packages\local-packages.json No package found in current working directory. Refreshing local packages (refresh existing: false)... Looking for local package map at C:\ProgramData\dub\packages\local-packages.json Looking for local package map at C:\Users\jolly\AppData\Roaming\dub\packages\local-packages.json Found dependency dsymbol 0.1.2 Found dependency emsi_containers 0.3.0 Found dependency experimental_allocator 2.70.0-b1 Found dependency libdparse 0.6.0 Found dependency msgpack-d 1.0.0-beta.6 Refreshing local packages (refresh existing: false)... Looking for local package map at C:\ProgramData\dub\packages\local-packages.json Looking for local package map at C:\Users\jolly\AppData\Roaming\dub\packages\local-packages.json Found dependency dsymbol 0.1.2 Found dependency emsi_containers 0.3.0 Found dependency experimental_allocator 2.70.0-b1 Found dependency libdparse 0.6.0 Found dependency msgpack-d 1.0.0-beta.6 Checking for upgrades. Using cached upgrade results... Generating using build Generate target dcd (staticLibrary C:\Users\jolly\AppData\Roaming\dub\packages\dcd-0.8.0\dcd dcd) Generate target dsymbol (staticLibrary C:\Users\jolly\AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol dsymbol) Generate target emsi_containers (staticLibrary C:\Users\jolly\AppData\Roaming\dub\packages\emsi_containers-0 3.0\emsi_containers emsi_containers) Generate target experimental_allocator (staticLibrary C:\Users\jolly\AppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\ex erimental_allocator experimental_allocator) Generate target libdparse (staticLibrary C:\Users\jolly\AppData\Roaming\dub\packages\libdparse-0.6.0\libdparse dparse) Generate target msgpack-d (staticLibrary C:\Users\jolly\AppData\Roaming\dub\packages\msgpack-d-1.0.0-beta.6\msgpack-d msgpack-d) Target 'C:\Users\jolly\AppData\Roaming\dub\packages\dcd-0.8.0\dcd\.dub\build\library-debug-windows-x86-dmd_2073-6A69E853731DB83EA50DA AEA3E1E753\dcd.lib' doesn't exist, need rebuild. dmd -lib -ofAppData\Roaming\dub\packages\dcd-0.8.0\dcd\.dub\build\library-debug-windows-x86-dmd_2073-6A69E853731DB83EA50D 8AEA3E1E753\dcd.lib -debug -g -w -version=built_with_dub -version=Have_dcd -version=Have_dsymbol -version=Have_emsi_containers -version=Have_experimental_allocator -version=Have_libdparse -version=Have_msgpack_d -IAppData\Roaming\dub\packages\dcd-0.8.0\dcd\src -IAppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src -IAppData\Roaming\dub\packages\emsi_containers-0.3.0\emsi_containers\src -IAppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\experi ental_allocator\src -IAppData\Roaming\dub\packages\libdparse 0.6.0\libdparse\src -IAppData\Roaming\dub\packages\msgpack-d-1.0.0- eta.6\msgpack-d\src AppData\Roaming\dub\packages\dcd-0.8.0\dcd\sr \common\constants.d AppData\Roaming\dub\packages\dcd-0.8.0\dcd\src\ ommon\dcd_version.d AppData\Roaming\dub\packages\dcd-0.8.0\dcd\s c\common\messages.d AppData\Roaming\dub\packages\dcd-0.8.0\dcd src\common\socket.d AppData\Roaming\dub\packages\dcd-0.8.0\dcd\src\s rver\autocomplete.d -vcolumns AppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allocato \package.d(322,13): Error: std.experimental.allocator.common.Ternary at AppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allo ator\common.d(14,1) conflicts with std.typecons.Ternary at C:\dlang\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(7470,1) AppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allocato \package.d(328,13): Error: std.experimental.allocator.common.Ternary at AppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allo ator\common.d(14,1) conflicts with std.typecons.Ternary at C:\dlang\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(7470,1) AppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allocato \package.d(348,13): Error: std.experimental.allocator.common.Ternary at AppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allo ator\common.d(14,1) conflicts with std.typecons.Ternary at C:\dlang\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(7470,1) AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src\dsymb l\symbol.d(415,30): Deprecation: containers.ttree.Mallocator is not visible from module symbol AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src\dsymb l\symbol.d(322,10): Deprecation: containers.ttree.Mallocator is not visible from module symbol AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src\dsymbol\scope_.d(215,2): Deprecation: containers.ttree.Mallocator is not visible from module scope_ AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src\dsymbol\scope_.d(243,2): Deprecation: containers.ttree.Mallocator is not visible from module scope_ AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src\dsymb l\semantic.d(77,2): Deprecation: containers.unrolledlist.Mallocator is not visible from module semantic AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src\dsymb l\semantic.d(80,2): Deprecation: containers.unrolledlist.Mallocator is not visible from module semantic FAIL AppData\Roaming\dub\packages\dcd-0.8.0\dcd\.dub\build\library-debug-windows-x86-dmd_2073-6A69E853731DB 3EA50DA8AEA3E1E753\ dcd staticLibrary dmd failed with exit code 1.
Feb 22