RejectedSoftware Forums

Sign up

Ddox build fails, normal build works

Hi,

I have a problem when trying to build a documentation using dub.

If I do dub build everything works, but if I do dub build -b ddox the build fails with:

Error: unrecognized file extension
dmd failed with exit code 1.

Looking at the verbose output I see that building ddox adds '.' to the list of files for dmd a this is what crashes it (that is manually removing the dot and reruning the command makes it work). Any idea how to get rid of it?

Thanks,
Martin

Re: Ddox build fails, normal build works

Am 18.01.2017 um 11:21 schrieb Martin Drašar:

Hi,

I have a problem when trying to build a documentation using dub.

If I do dub build everything works, but if I do dub build -b ddox the build fails with:

Error: unrecognized file extension
dmd failed with exit code 1.

Looking at the verbose output I see that building ddox adds '.' to the list of files for dmd a this is what crashes it (that is manually removing the dot and reruning the command makes it work). Any idea how to get rid of it?

Thanks,
Martin

Have a look at the latest RC (1.2.0-rc.1), I also noticed this a few
days ago and pushed a fix.

Re: Ddox build fails, normal build works

On Wed, 18 Jan 2017 21:06:02 +0100, Sönke Ludwig wrote:

Have a look at the latest RC (1.2.0-rc.1), I also noticed this a few
days ago and pushed a fix.

Thanks... I have moved a bit but still can't finish the build. I get this error:

Incorrect format specifier for range: %i
Full exception: core.exception.AssertError@source\dub\internal\vibecompat\core\log.d(85): Incorrect format specifier for range: %i
----------------
0x00545A51 in _d_assert_msg
0x0051A381 in nothrow void dub.internal.vibecompat.core.log.logInfo!(immutable(char)[]).logInfo(immutable(char)[], lazy immutable(char)[]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\internal\vibecompat\core\log.d(43)
0x0041EEB2 in void dub.dub.Dub.runDdox(bool, immutable(char)[][]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\dub.d(1070)
0x00407581 in int dub.commandline.GenerateCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\commandline.d(770)
0x004077DD in int dub.commandline.BuildCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\commandline.d(801)
0x00404E3B in int dub.commandline.runDubCommandLine(immutable(char)[][]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\commandline.d(232)
0x00402146 in _Dmain at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\app.d(15)
0x00542357 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv
0x0054231B in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()
0x0054221C in _d_run_main
0x0040401C in main at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\app.d(7)
0x005A2E0D in mainCRTStartup
0x7631338A in BaseThreadInitThunk
0x77899902 in RtlInitializeExceptionChain
0x778998D5 in RtlInitializeExceptionChain

Re: Ddox build fails, normal build works

Am 19.01.2017 um 11:01 schrieb Martin Drašar:

On Wed, 18 Jan 2017 21:06:02 +0100, Sönke Ludwig wrote:

Have a look at the latest RC (1.2.0-rc.1), I also noticed this a few
days ago and pushed a fix.

Thanks... I have moved a bit but still can't finish the build. I get this error:

Incorrect format specifier for range: %i
Full exception: core.exception.AssertError@source\dub\internal\vibecompat\core\log.d(85): Incorrect format specifier for range: %i
----------------
0x00545A51 in _d_assert_msg
0x0051A381 in nothrow void dub.internal.vibecompat.core.log.logInfo!(immutable(char)[]).logInfo(immutable(char)[], lazy immutable(char)[]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\internal\vibecompat\core\log.d(43)
0x0041EEB2 in void dub.dub.Dub.runDdox(bool, immutable(char)[][]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\dub.d(1070)
0x00407581 in int dub.commandline.GenerateCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\commandline.d(770)
0x004077DD in int dub.commandline.BuildCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\commandline.d(801)
0x00404E3B in int dub.commandline.runDubCommandLine(immutable(char)[][]) at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\dub\commandline.d(232)
0x00402146 in _Dmain at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\app.d(15)
0x00542357 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv
0x0054231B in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()
0x0054221C in _d_run_main
0x0040401C in main at C:\Users\build\AppData\Roaming\dub-ci-workspace\current\dub\source\app.d(7)
0x005A2E0D in mainCRTStartup
0x7631338A in BaseThreadInitThunk
0x77899902 in RtlInitializeExceptionChain
0x778998D5 in RtlInitializeExceptionChain

I've fixed the format string now . It should read: "%s is not present,
getting and storing it user wide"
It should be able to work around this issue by manually running "dub
fetch ddox" before generating the docs.

Re: Ddox build fails, normal build works

On Thu, 19 Jan 2017 23:21:44 +0100, Sönke Ludwig wrote:

I've fixed the format string now . It should read: "%s is not present,
getting and storing it user wide"
It should be able to work around this issue by manually running "dub
fetch ddox" before generating the docs.

Thanks! Fetching ddox did the trick.