gradle-dependency-graph-generator-plugin
gradle-dependency-graph-generator-plugin copied to clipboard
Allow customization of timeouts
Error occurring during run: Command took too long to execute, try setting a higher timout: '[/bin/sh, -c, dot -Kdot -Tsvg /tmp/GraphvizJava/DotEngine7925473131433663348/dotfile.dot -ooutfile.svg]'
The plugin should have an overridable default timeout.
We might have to tell the timeout to the underlying graphviz library we're using
Did you try to configure the Graphviz instance directly with a custom engine with the proper timeout?
Graphviz.useEngine(GraphvizCmdLineEngine().timeout(2, TimeUnit.MINUTES))
@SimonMarquis what do you think if we provide a reasonable default lets say 30 seconds for the tasks that we create? And any one who needs more can use https://github.com/vanniktech/gradle-dependency-graph-generator-plugin/pull/183
The issue with this approach is that it will force everyone to use this engine. And the Graphviz wrapper we use does rely on a default list of available engines.
https://github.com/nidi3/graphviz-java/blob/f0c1fdfa37c8b9876ef1dcccec1a6c19219e727e/graphviz-java/src/main/java/guru/nidi/graphviz/engine/Graphviz.java#L88
Aaah I thought GraphvizEngine has a timeout as well :(
How do I access graphViz?