Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: can't find d2 executable #146

Open
jcayzac opened this issue Aug 8, 2024 · 5 comments
Open

bug: can't find d2 executable #146

jcayzac opened this issue Aug 8, 2024 · 5 comments

Comments

@jcayzac
Copy link

jcayzac commented Aug 8, 2024

  • The extension expects d2 to live in the system path, not the user path.
  • It doesn't support GOPATH either.
  • Environment variables are not supported in the D2.execPath setting so passing $GOPATH/bin/d2 there doesn't work either.

I have d2 in my user path, but I cannot use this extension.

Screenshot 2024-08-08 at 14 42 16 Screenshot 2024-08-08 at 14 42 40
@suchwerk
Copy link

suchwerk commented Dec 9, 2024

same here.

@BarryNolte
Copy link
Collaborator

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.

@suchwerk
Copy link

Yes this is working. I wounder why d2 is not found on the system path.

@Sayi
Copy link

Sayi commented Dec 13, 2024

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] - ************************************************************

@commandline-be
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants