bug: can't find d2 executable
- The extension expects
d2to live in the system path, not the user path. - It doesn't support
GOPATHeither. - Environment variables are not supported in the
D2.execPathsetting so passing$GOPATH/bin/d2there doesn't work either.
I have d2 in my user path, but I cannot use this extension.
same here.
Does it work if you set the d2 path in the settings to (as in the example above): "/Users/julien.cayzac/.go/bin/d2". The logic is pretty simple, it takes that string from the settings and tries to execute it.
Yes this is working. I wounder why d2 is not found on the system path.
I think we should use D2 WEB API calls by default instead of having to install d2 locally!
[17:17:01] - ************************************************************
[17:17:01] - D2 executable not found.
[17:17:01] - Make sure the D2 executable is installed and on your system PATH.
[17:17:01] - https://d2lang.com/tour/install
[17:17:01] - ************************************************************
My impression is this does not work because (sigh) the VSCode Extension search for D2 binary in the working directory, not in the actual path or system PATH.
i plan to release a d2 wasm/js package which will replace the need for an installed binary