Jump to page: 1 2
Thread overview
Dub Packages not working with lastest DMD
Feb 18, 2017
Jolly James
Feb 18, 2017
lawrence
Feb 21, 2017
Seb
Feb 21, 2017
Lenny Lowood
Feb 21, 2017
Seb
Feb 22, 2017
Jolly James
Apr 19, 2017
Jolly James
Apr 20, 2017
Basile B.
Apr 20, 2017
Jolly James
Apr 21, 2017
Basile B.
Apr 22, 2017
Jolly James
Apr 21, 2017
Mike Parker
Apr 21, 2017
Mike Parker
Apr 22, 2017
Jolly James
Apr 22, 2017
Basile B.
May 07, 2017
Jeremy DeHaan
May 10, 2017
Basile B.
Jun 17, 2017
Jolly James
Jun 17, 2017
Jolly James
February 18, 2017
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.
February 18, 2017
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.


February 21, 2017
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\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.

What version do you use? Std_experimental_allocator has been removed from libdparse this summer (!).
Maybe you have a hard-coded version somewhere?
February 21, 2017
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
February 21, 2017
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.
February 22, 2017
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\experimental_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-6A69E853731DB83EA50DA8AEA3E1E753\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-6A69E853731DB83EA50DA8AEA3E1E753\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\experimental_allocator\src -IAppData\Roaming\dub\packages\libdparse-0.6.0\libdparse\src -IAppData\Roaming\dub\packages\msgpack-d-1.0.0-beta.6\msgpack-d\src AppData\Roaming\dub\packages\dcd-0.8.0\dcd\src\common\constants.d AppData\Roaming\dub\packages\dcd-0.8.0\dcd\src\common\dcd_version.d AppData\Roaming\dub\packages\dcd-0.8.0\dcd\src\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\server\autocomplete.d -vcolumns
AppData\Roaming\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 AppData\Roaming\dub\packages\experimental_allocator-2.70.0-b1\experimental_allocator\src\std\experimental\allocator\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\allocator\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\allocator\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\allocator\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\allocator\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\dsymbol\symbol.d(415,30): Deprecation: containers.ttree.Mallocator is not visible from module symbol
AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src\dsymbol\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\dsymbol\semantic.d(77,2): Deprecation: containers.unrolledlist.Mallocator is not visible from module semantic
AppData\Roaming\dub\packages\dsymbol-0.1.2\dsymbol\src\dsymbol\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-6A69E853731DB83EA50DA8AEA3E1E753\ dcd staticLibrary
dmd failed with exit code 1.
April 19, 2017
On Wednesday, 22 February 2017 at 17:12:40 UTC, Jolly James wrote:
> [...]

still not working with updated DMD
April 20, 2017
On Wednesday, 19 April 2017 at 20:50:23 UTC, Jolly James wrote:
> On Wednesday, 22 February 2017 at 17:12:40 UTC, Jolly James wrote:
>> [...]
>
> still not working with updated DMD

dub fetch DCD doesn't get the latest version because it's an alpha.
you'd have do `dub fetch dcd --version=0.9.0-alpha.6`. But ***dont***.


Instead:

0/ `git clone https://github.com/Hackerpilot/DCD.git && gitsubmodule update --init --recursive`

Then You have two options:

1/ under a linux or OSX: `make`, under windows double click the `build.bat` file
2/ in the recently cloned repo, `dub build --build=release`

I advice you 1/ because of some recent bug fixes in the dependency.
April 20, 2017
On Thursday, 20 April 2017 at 03:59:11 UTC, Basile B. wrote:
> On Wednesday, 19 April 2017 at 20:50:23 UTC, Jolly James wrote:
>> On Wednesday, 22 February 2017 at 17:12:40 UTC, Jolly James wrote:
>>> [...]
>>
>> still not working with updated DMD
>
> dub fetch DCD doesn't get the latest version because it's an alpha.
> you'd have do `dub fetch dcd --version=0.9.0-alpha.6`. But ***dont***.
>
>
> Instead:
>
> 0/ `git clone https://github.com/Hackerpilot/DCD.git && gitsubmodule update --init --recursive`
>
> Then You have two options:
>
> 1/ under a linux or OSX: `make`, under windows double click the `build.bat` file
> 2/ in the recently cloned repo, `dub build --build=release`
>
> I advice you 1/ because of some recent bug fixes in the dependency.

Thank you!

Do you also know if there is a way to get this working with software relying on dub-DCD like Code-D, the VS-Code D extension (it installs workspace-d, DCD, and so on via dub)?
April 21, 2017
On Thursday, 20 April 2017 at 14:26:42 UTC, Jolly James wrote:
> On Thursday, 20 April 2017 at 03:59:11 UTC, Basile B. wrote:
>> On Wednesday, 19 April 2017 at 20:50:23 UTC, Jolly James wrote:
>>> On Wednesday, 22 February 2017 at 17:12:40 UTC, Jolly James wrote:
>>>> [...]
>>>
>>> still not working with updated DMD
> Thank you!
>
> Do you also know if there is a way to get this working with software relying on dub-DCD like Code-D, the VS-Code D extension (it installs workspace-d, DCD, and so on via dub)?

No, i don't know. Actually i'm the author of the D IDE Coedit (https://github.com/BBasile/Coedit) so i don't use anything else at all ;].
« First   ‹ Prev
1 2