asciidoctor-intellij-plugin icon indicating copy to clipboard operation
asciidoctor-intellij-plugin copied to clipboard

Working dir should be the project folder and not the root folder for graphviz/dot

Open dspaeth-breuni opened this issue 2 years ago • 0 comments

Observed vs. expected behavior

When I try to create a graph with graphviz and use an image for the node, with a relative path within my project, then the image is not displayed.

This happens because the working dir is / instead of the project folder.

When I use the full path from root, for instance image="/User/demo/IdeaProjects/project/assets/pod.png", then the image is displayed.

Steps to reproduce

No image shows up:

:graphvizdot: /opt/homebrew/bin/dot
[graphviz, "demo"]
---------------------------------------------------------------------
digraph "demo" {
	"5926cd0c520a4b8f84cc092088e27a46"	[height=1.9028,
					image="./assets/pod.png",
					label="",
					pos="392.5,1315.5",
					shape=none,
					width=1.4028];
	
}

---------------------------------------------------------------------

Environment

Plugin Version: 0.37.32 dot: 5.0.0 (20220707.1540)

IntelliJ Details:

IntelliJ IDEA 2022.1.3 (Ultimate Edition) Build #IU-221.5921.22, built on June 21, 2022 ... Runtime version: 11.0.15+10-b2043.56 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.4 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 10 Non-Bundled Plugins: org.jetbrains.plugins.go-template (221.5787.15) org.jetbrains.plugins.go (221.5921.16) org.intellij.plugins.hcl (221.5787.20) name.kropp.intellij.makefile (221.5787.15) com.mnr.java.intellij.idea.plugin.base64helper (2.0.3) com.jetbrains.jax.ws (221.5787.20) org.asciidoctor.intellij.asciidoc (0.37.32) PlantUML integration (5.13.0) com.intellij.kubernetes (221.5787.39) org.jetbrains.plugins.vue (221.5787.15) com.github.bjansen.intellij.pebble (0.9.1) Pythonid (221.5787.30) net.ashald.envfile (3.2.2) aws.toolkit (1.46-221) com.intellij.bigdatatools (221.4165.72)

Kotlin: 221-1.6.21-release-337-IJ5921.22

dspaeth-breuni avatar Jul 21 '22 05:07 dspaeth-breuni