RejectedSoftware Forums

Sign up

Simple Compiler error - I am probabl doing something wrong.

I just started to dip my toes into vibe.d and I tried to stay
on the beaten track. I downloaded vibe zip, and did the "First
Steps" as recommended:

$ cd /path/to/my/projects
$ dub init <project-name> vibe.d

But when I try compiling the default code in app.d which is created after the "dub init" above, I get:

N:\VibeMyProject\MyProject\source>dmd app.d -IN:\vibe.d\source
-IN:\Deimos\openssl-master
N:\Deimos\openssl-master\deimos\openssl\bn.d(907): Error:
matching '}' expected, not EOF
N:\vibe.d\source\vibe\templ\parsertools.d(12): Error: module
metastrings is in file 'std\metastrings.d' which cannot be read
import path[0] = N:\vibe.d\source
import path[1] = N:\Deimos\openssl-master
import path[2] = N:\D\dmd2\windows\bin....\src\phobos
import path[3] = N:\D\dmd2\windows\bin....\src\druntime\import

Isn't the first a syntax error and the second one I read that
metastrings was Deprecated and it would be removed in March
2014.

Should I be using DUB to download vibe?

I've read the documentation on DUB and vibe, but I'm still a little hazy on both.

Is there a walk-through?

Thanks.

Re: Simple Compiler error - I am probabl doing something wrong.

On Fri, 24 Oct 2014 20:08:33 GMT, WhatMeWorry wrote:

I just started to dip my toes into vibe.d and I tried to stay
on the beaten track. I downloaded vibe zip, and did the "First
Steps" as recommended:

$ cd /path/to/my/projects
$ dub init <project-name> vibe.d

Hey there,

You should install DMD 2.066 first, from http://dlang.org/download

You should also install dub 0.9.22 from http://code.dlang.org/download

The best way to get vibe.d is to use dub and fetch it, I suggest version 0.7.21-rc3.

dub fetch vibe-d --version=0.7.21-rc.3

You can see a list of versions here: https://github.com/rejectedsoftware/vibe.d/releases

Then you can build a project using dub init vibe-d and run dub run with it... You also could have specified the version in the dub.json, by changing it from ~>0.7.19 to 0.7.21-rc.3

You can also check the examples in the fetched folder.
e.g.
cd /root/.dub/packages/vibe-d-0.7.21-rc.3/examples/download/
dub run

Good luck to you!

Re: Simple Compiler error - I am probabl doing something wrong.

Am 24.10.2014 23:23, schrieb Etienne Cimon:

On Fri, 24 Oct 2014 20:08:33 GMT, WhatMeWorry wrote:

I just started to dip my toes into vibe.d and I tried to stay
on the beaten track. I downloaded vibe zip, and did the "First
Steps" as recommended:

$ cd /path/to/my/projects
$ dub init <project-name> vibe.d

Hey there,

You should install DMD 2.066 first, from http://dlang.org/download

You should also install dub 0.9.22 from http://code.dlang.org/download

The best way to get vibe.d is to use dub and fetch it, I suggest version 0.7.21-rc3.

dub fetch vibe-d --version=0.7.21-rc.3

You can see a list of versions here: https://github.com/rejectedsoftware/vibe.d/releases

Then you can build a project using dub init vibe-d and run dub run with it... You also could have specified the version in the dub.json, by changing it from ~>0.7.19 to 0.7.21-rc.3

You can also check the examples in the fetched folder.
e.g.
cd /root/.dub/packages/vibe-d-0.7.21-rc.3/examples/download/
dub run

Good luck to you!

To explain the error, it happened particularly, because vibe.d 0.7.20
isn't compatible with DMD 2.066, which accidentally introduced some
breaking changes. It also used the ~master branch of the OpenSSL
bindings instead of a versioned tag, and there are currently compile
fixes pending. 0.7.21-rc.3 uses a known working version tag instead.

Sorry for the inconvenience, the situation should be back to normal shortly.

Re: Simple Compiler error - I am probabl doing something wrong.

Thanks for building such a interesting project.

Btw, not complaining. Just wanted to let make you aware of maybe another possible bug.

You can also check the examples in the fetched folder.
e.g.
cd /root/.dub/packages/vibe-d-0.7.21-rc.3/examples/download/
dub run

When I did the dub run I got this:

c:\Users\kheaser\AppData\Roaming\dub\packages\vibe-d-0.7.21-rc.3\examples\download>dub run
The following changes will be performed:
Fetch libevent >=2.0.1+2.0.16 <2.1.0, userWide
Fetch openssl >=1.0.0+1.0.0e, userWide
Fetch libev >=4.0.0+4.04 <4.1.0, userWide
Fetching libevent 2.0.1+2.0.16...
Fetching libevent 2.0.1+2.0.16...
Error executing command run: Failed to download http://code.dlang.org/packages/libevent/2.0.1%252B2.0.16.zip: 404 Not Found

Re: Simple Compiler error - I am probabl doing something wrong.

Am 25.10.2014 19:54, schrieb WhatMeWorry:

Error executing command run: Failed to download http://code.dlang.org/packages/libevent/2.0.1%252B2.0.16.zip: 404 Not Found

That was indeed a bug in previous versions of DUB. It's fixed in the
current version (0.9.22).