Dub Packages not working with lastest DMD

Basile B. via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Tue May 9 17:43:32 PDT 2017


On Sunday, 7 May 2017 at 05:40:35 UTC, Jeremy DeHaan 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.
>
> I recently upgraded my version of DMD to 2.074 and experienced 
> this, and then found this thread.
>
> Just wanted to say that in experimental_allocator-2.70.0-b1's 
> package.d, on lines 252&253, change the std.typecons import to 
> be static or remove it. This got everything except dscanner 
> building, but that appears to be for reasons other than the 
> experimental allocator.

Another solution: when you fetch dfmt/dscanner do

"dub fetch <package name> version=~master"
or replaces "~master" with the latest tag (for example 
"0.5.0-beta.5").

One problem with DUB is that it fetches the latest *stable* 
release.


More information about the Digitalmars-d-ide mailing list