dlang / ddox

Advanced D documentation engine
MIT License
63 stars 21 forks source link

Generating documentation error #169

Open o3o opened 7 years ago

o3o commented 7 years ago
[dao@abe dinodave]$ dub build --build=ddox
Performing "ddox" build using dmd for x86_64.
dinodave 0.2.0+commit.34.g5a63c47: building configuration "library"...
Performing "debug" build using dmd for x86_64.
hyphenate 1.1.1: target for configuration "library" is up to date.
libdparse 0.7.0-beta.3: target for configuration "library" is up to date.
diet-ng 1.1.1: target for configuration "library" is up to date.
vibe-d:utils 0.7.30: target for configuration "library" is up to date.
vibe-d:data 0.7.30: target for configuration "library" is up to date.
vibe-d:core 0.7.30: building configuration "libevent"...
../../.dub/packages/vibe-d-0.7.30/vibe-d/source/vibe/core/core.d(1183,18): Error: function vibe.core.core.CoreTask.state cannot override final function core.thread.Fiber.state
dmd failed with exit code 1.

My environment

$ dub --version
DUB version 1.5.0-beta.1, built on Aug 22 2017

$ dmd --version
DMD64 D Compiler v2.075.1
Copyright (c) 1999-2017 by Digital Mars written by Walter Bright

$ uname --all
Linux abe 4.12.8-2-ARCH #1 SMP PREEMPT Fri Aug 18 14:08:02 UTC 2017 x86_64 GNU/Linux
s-ludwig commented 7 years ago

Should be fixed with the latest release, which now uses the 0.8.x branch of vibe.d.

o3o commented 7 years ago

Thank you Sonke. I tried to fix (in dub) but not successful. A question: who uses 0.8.x, dub or ddox?

s-ludwig commented 7 years ago

vibe.d 0.8.0 has 8k downloads (vs. 13k for 0.7.30), DUB is obviously used a lot. Ddox is used on https://vibed.org/api/ and https://dlang.org/library/, as well as some other places, sometimes in the form of scod.

Which issues did you encounter? It works fine for me on all systems that I tested, but it could be that it still picks up the old version on your system. dub remove ddox --version=* should fix it in that case.