schemaspy icon indicating copy to clipboard operation
schemaspy copied to clipboard

Relationship diagrams fail due to missing space in -o Graphviz argument (Windows)

Open track507 opened this issue 7 months ago • 4 comments

SchemaSpy fails to generate the relationship summary diagrams due to an invalid dot command. The issue is that the -o argument for the output file is not properly spaced, resulting in a malformed command and a Permission denied error from Graphviz. Debug Log Excerpt:

DEBUG - dot -Tpng:cairo relationships.real.compact.dot -orelationships.real.compact.png -Tcmapx
ERROR - dot -Tpng:cairo relationships.real.compact.dot -orelationships.real.compact.png -Tcmapx: Error: dot: can't open relationships.real.compact.dot: Permission denied
DEBUG - dot -Tpng:cairo relationships.real.large.dot -orelationships.real.large.png -Tcmapx
ERROR - dot -Tpng:cairo relationships.real.large.dot -orelationships.real.large.png -Tcmapx: Error: dot: can't open relationships.real.large.dot: Permission denied
.DEBUG - dot -Tpng:cairo relationships.implied.compact.dot -orelationships.implied.compact.png -Tcmapx
ERROR - dot -Tpng:cairo relationships.implied.compact.dot -orelationships.implied.compact.png -Tcmapx: Error: dot: can't open relationships.implied.compact.dot: Permission denied
DEBUG - dot -Tpng:cairo relationships.implied.large.dot -orelationships.implied.large.png -Tcmapx
ERROR - dot -Tpng:cairo relationships.implied.large.dot -orelationships.implied.large.png -Tcmapx: Error: dot: can't open relationships.implied.large.dot: Permission denied
ERROR - RelationShipDiagramError

The dot command creating the relationships should have a space between -o and relationships.implied.large.png This only applies to the relationship summary diagrams. The diagrams in the /tables directory aren't affected. After SchemaSpy completes, I went back and manually reran the exact same command from above with a space to render the images.

Windows 11 OpenJDK 17 Schemaspy 6.2.4 GraphViz 12.2.1 (20241206.2353) SQLite (sqlite-xerial) Renderer :cairo

track507 avatar Mar 31 '25 20:03 track507