Cannot generate Ditaa diagram with Doxygen

0 votes
asked Mar 16 in Bug by anonymous
edited Mar 19
Hello,

I am using PlantUML combined with Doxygen to manage our design documentation.

This is working fine, but one wanted to use a simple ditaa diagram and this is not working.

The following text is put inside source code:

@startditaa{DQ_usage.png}

           +---+---+---+---+---+
DQePut --->+   |   |...|   |   +---> DQeGet
           +---+---+---+---+---+
            Last           First

@endditaa

and the result is not processed (there is no error from PlantUML, but we have no diagram, only the same text.
The doxy log is reporting:

data_queue.dox:11: warning: Found unknown command `\startditaa'
data_queue.dox:19: warning: Found unknown command `\endditaa'

I have also tested using @startuml keyword, followed directly by ditaa() on the first next line, but in that case I have some errors from PlantUML.

I think this is related to the PLANTUML_CFG_FILE file which we are using (Doxygen option). I have also tried without this option in Doxygen, but the result is the same. I think that in the Doxygen implementation, the ditaa() keyword is not at the first line.

Thanks and regards

1 Answer

0 votes
answered Mar 16 by Serge Wenger Work (9,810 points)

There is an error (ditaa with only one t):

@startditaa{DQ_usage.png}

           +---+---+---+---+---+
DQePut --->+   |   |...|   |   +---> DQeGet
           +---+---+---+---+---+
            Last           First

@endditaa

commented Mar 19 by anonymous
Sorry, I tried with both writings, but results is the same. The doxy log is reporting:

data_queue.dox:11: warning: Found unknown command `\startditaa'
data_queue.dox:19: warning: Found unknown command `\endditaa'
commented Mar 21 by Serge Wenger Work (9,810 points)
Hello, Could you try this, because, iti isi working well on my side:
    /**
    @startuml
    Bob -> Alice : hello
    @enduml    */
    /**
    @startuml
    ditaa
               +---+---+---+---+---+
    DQePut --->+   |   |...|   |   +---> DQeGetaaa
               +---+---+---+---+---+
                Last           First

    @enduml
commented Mar 21 by DGA
Hello,
With your example, the first diagram is OK, but for the second I have a black box inside of the image, with the following message:

[From D:\Project\_Standard_Components_SW\_Admin\Doxygen\Generated\html\inline_umlgraph_2.pu (line 3) ]
... (skipping 130 lines) ...
FontSize 12
}
ditaa
Syntax error: ditaa
...