ddox icon indicating copy to clipboard operation
ddox copied to clipboard

Documentation is duplicated when symbol is under version(D_Ddoc)

Open FreeSlave opened this issue 7 years ago • 2 comments

/// module
module app;
import std.stdio;

version(D_Ddoc)
{
    ///
    class SomeClass
    {
        ///
        this() {}
    }

    ///
    void someFunction() {}
}

void main()
{
	writeln("Edit source/app.d to start your project.");
}

screenshot from 2018-05-27 16-13-45 screenshot from 2018-05-27 16-14-02

FreeSlave avatar May 27 '18 13:05 FreeSlave

Also example of duplication in standard library docs https://dlang.org/library/std/file/dir_entry.html

FreeSlave avatar May 30 '18 13:05 FreeSlave

I'm getting this same problem even though I'm using a different version identifier name in my project (MySQLDocs) instead of D_Ddoc.

The problem appears to be compiler-related. Using ddox v0.16.12, I get this problem on DMD 2.078.0 and up. But on DMD 2.077.1 and below it works fine, with no duplicate entries. I don't know if DMD 2.078.0 introduced a bug, or if maybe it just made a change to its json doc output that ddox isn't aware of.

Abscissa avatar Dec 08 '19 21:12 Abscissa