Solved it. I had a _fromJSON comment somewhere else in the file and the underscore causes ddoc to fail

On Monday, 19 January 2015 at 20:47:42 UTC, BlackEdder wrote:
I'm trying to use ddoc to generate documentation, but get the following error:
$ dub -b docs
Building configuration "library", build type docs
Running dmd...
source/painlessjson.d(287): Error: template painlessjson.fromJSON(T)(JSONValue json) unmatched --- in DDoc comment
FAIL . painlessjson staticLibrary
Error executing command run: dmd failed with exit code 1.

The relevant code:
/// Convert from JSONValue to any other type
T fromJSON(T)(JSONValue json)
{
 /* code */
}

The code on its own compiles normally (and passes all tests).

Link to full code:
https://github.com/BlackEdder/painlessjson/blob/master/source/painlessjson.d#L286

Any help appreciated :)

Reply via email to