Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007888OCamlocamldocpublic2018-12-29 11:092019-01-09 17:51
Assigned To 
PlatformMacOS10.14OS Version
Product Version4.07.1 
Target VersionFixed in Version 
Summary0007888: Ocamldoc generates rotate=90 directive in dot file, which is not correct
DescriptionI use ocamldoc 4.07.1+rc1.

I use it to generate a dependency graph for a set of modules, with the following command

ocamldoc -warn-error -I _build -dot *.ml -o
dot -Tpdf > graph.pdf

The generated dot file starts with:

digraph G {
  rankdir = TB ;

However, the dot directive "rotate=90;" is not working on MacOS 10.14. With this directive, dot generates a blank page. See <>. [^]

Without the directive, it works perfectly.

Steps To ReproduceI join the file, as generated below.

$ ocamldoc --version

$ ocamldoc -warn-error -I _build -dot *.ml -o

$ ls -la
-rw-r--r--@ 1 bouge staff 1934 29 déc 11:02

$ dot -Tpdf > graph.pdf

$ ls -la graph.pdf
-rw-r--r--@ 1 bouge staff 22539 29 déc 11:04 graph.pdf

$ open graph.pdf
--> Blank page

Additional InformationYou can test out this behavior of dot with this file:

$ more
digraph G {
  "a" -> "b";

$ dot -Tpdf > test.pdf

$ open test.pdf
--> Blank page
TagsNo tags attached.
Attached Filesdot file icon [^] (1,934 bytes) 2018-12-29 11:09

- Relationships

-  Notes
octachron (developer)
2019-01-09 17:51

Is there a more conclusive indication that "rotate=90" is not correct? It seems valid according to graphviz grammar description and it works on at least one implementation. We could maybe add a bare option to ocamldoc dot output, but it would still require some manual hand editing.

- Issue History
Date Modified Username Field Change
2018-12-29 11:09 luc.bouge New Issue
2018-12-29 11:09 luc.bouge File Added:
2019-01-09 17:51 octachron Note Added: 0019543

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker