Thread overview
dmd & dub from git master
Jul 06, 2014
Nordlöw
Jul 06, 2014
Nordlöw
Jul 06, 2014
Nordlöw
Jul 06, 2014
w0rp
Jul 07, 2014
Nordlöw
Sep 07, 2014
notna
July 06, 2014
Trying to use dub git master with dmd git master fails

as[per:/home/per] master(+20/-466) ± dub init vibtest vibe.d
Successfully created an empty project in '/home/per/vibtest'.
[per:/home/per] master(+20/-466) ± cd vibtest/
/home/per/vibtest
[per:/home/per/vibtest] $ dub
Fetching vibe-d 0.7.20 (getting selected version)...
Placing vibe-d 0.7.20 to /home/per/.dub/packages/...
Building vibe-d 0.7.20 configuration "libevent", build type debug.
Running dmd...
../.dub/packages/vibe-d-0.7.20/source/vibe/templ/parsertools.d(12): Error: module metastrings is in file 'std/metastrings.d' which cannot be read
import path[0] = ../.dub/packages/vibe-d-0.7.20/source/
import path[1] = ../.dub/packages/libevent-master
import path[2] = ../.dub/packages/openssl-master
import path[3] = /home/per/opt/x86_64-unknown-linux-gnu/dmd/bin/../lib
import path[4] = /home/per/opt/x86_64-unknown-linux-gnu/dmd/bin/../include/d2
import path[5] = /home/per/opt/x86_64-unknown-linux-gnu/dmd/bin/../import
FAIL ../.dub/packages/vibe-d-0.7.20/.dub/build/libevent-debug-linux.posix-x86_64-dmd-7D4E6F7D7874CAC10CFE2C8A1AA191A2/ vibe-d staticLibrary
Error executing command run: dmd failed with exit code 1.

Should I use a specific release of vibe.d instead?

If so should I give a specific version to

    dub init

or to

    dub

?
July 06, 2014
On Sunday, 6 July 2014 at 09:54:11 UTC, Nordlöw wrote:

I believe I need git master instead of latest release because of

https://github.com/rejectedsoftware/vibe.d/commits/master

If I change

    "vibe-d": "~>0.7.19"

to

    "vibe-d": "~master"

followed by

    dub upgrade

and

    dub

I instead get

Package vibe-d can be upgraded from ~master to 0.7.20.
Use "dub upgrade" to perform those changes.
WARNING: A deprecated branch based version specification is used for the dependency vibe-d. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Building vibe-d ~master configuration "libevent", build type debug.
Running dmd...
../.dub/packages/vibe-d-master/source/vibe/core/drivers/libevent2.d(461): Deprecation: function core.time.Duration.fracSec is deprecated - Please use split instead.
../.dub/packages/vibe-d-master/source/vibe/core/drivers/libevent2_tcp.d(110): Deprecation: function core.time.Duration.fracSec is deprecated - Please use split instead.
../.dub/packages/vibe-d-master/source/vibe/core/drivers/libevent2_tcp.d(269): Deprecation: function core.time.Duration.fracSec is deprecated - Please use split instead.
../.dub/packages/vibe-d-master/source/vibe/inet/message.d(186): Deprecation: constructor std.datetime.SimpleTimeZone.this is deprecated - Please use the overload which takes a Duration.
../.dub/packages/vibe-d-master/source/vibe/utils/memory.d(193): Warning: calling std.exception.enforceEx!(OutOfMemoryError).enforceEx!bool.enforceEx without side effects discards return value of type bool, prepend a cast(void) if intentional
FAIL ../.dub/packages/vibe-d-master/.dub/build/libevent-debug-linux.posix-x86_64-dmd-7D4E6F7D7874CAC10CFE2C8A1AA191A2/ vibe-d staticLibrary
Error executing command run: dmd failed with exit code 1.

July 06, 2014
What is the syntax for specifying a specific package version (in my case ~master) when calling dub init?
July 06, 2014
I hit this myself also. I was trying to use the master branch DMD, druntime, and phobos with a recent vibe.d for building the documentation with ddox, and I ran into the reliance on std.metastrings.
July 07, 2014
On Sunday, 6 July 2014 at 11:25:04 UTC, w0rp wrote:
> I hit this myself also. I was trying to use the master branch DMD, druntime, and phobos with a recent vibe.d for building the documentation with ddox, and I ran into the reliance on std.metastrings.

I got things to work after some cleanups of the DUB installations. I don't know exactly how...but no things work :)
September 07, 2014
I had the same problem just now... on  Win8.1 with
- DMD32 D Compiler v2.066.0
- DUB version 0.9.21

The workaround is to manually update the "dub.json" file of your project, which was written from "dub init", to the latest vibe-d info on "http://code.dlang.org/packages/vibe-d", so


"dependencies": {
		"vibe-d": ">=0.7.21-beta.1"
	},

Regards
 Anton Oks


On Monday, 7 July 2014 at 17:00:30 UTC, Nordlöw wrote:
>
> I got things to work after some cleanups of the DUB installations. I don't know exactly how...but no things work :)