vanniktech/gradle-dependency-graph-generator-plugin

runned task with an error

excitedhaha opened this issue · 5 comments

Task :app:generateDependencyGraph FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:generateDependencyGraph'.

TypeError: Module.print is not a function

Same error here

Can you please provide more of the stack trace?

I have the same issue, here is the stacktrace:

Caused by: guru.nidi.graphviz.engine.GraphvizException: TypeError: Module.print is not a function
	at guru.nidi.graphviz.engine.ResultHandler.waitFor(ResultHandler.java:42)
	at guru.nidi.graphviz.engine.GraphvizV8Engine$Env.execute(GraphvizV8Engine.java:91)
	at guru.nidi.graphviz.engine.GraphvizV8Engine.jsExecute(GraphvizV8Engine.java:67)
	at guru.nidi.graphviz.engine.AbstractJsGraphvizEngine.execute(AbstractJsGraphvizEngine.java:28)
	at guru.nidi.graphviz.engine.Graphviz.execute(Graphviz.java:188)
	at guru.nidi.graphviz.engine.Renderer.toString(Renderer.java:46)
	at guru.nidi.graphviz.engine.Renderer.toFile(Renderer.java:58)
	at com.vanniktech.dependency.graph.generator.DependencyGraphGeneratorTask.run(DependencyGraphGeneratorTask.kt:33)

Seems quite related to nidi3/graphviz-java#110

Snapshot is building now with #151 which uses Graphviz 0.18.1 and hence this issue should be closed. I'll cut a release in a few days, in the meantime please use the SNAPSHOT.