How to generate type hierarchy diagrams with Scaladoc?
问题 I want that Scaladoc generates a type hierarchy diagram for the following code snippet: trait A trait B extends A But when I execute scaladoc <file>.scala there is no type hierarchy shown - neither in A nor in B . How can I generate such diagrams? 回答1: First, one needs Scaladoc2 for this, which is part of Scala 2.10. If 2.10 is installed, one also needs to pass the -diagrams option to Scaladoc in order to generate the diagrams. But if you do so it can be that the following error message