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

vsc preview error #109

Closed
jacealan opened this issue Jun 22, 2023 · 2 comments
Closed

vsc preview error #109

jacealan opened this issue Jun 22, 2023 · 2 comments

Comments

@jacealan
Copy link

jacealan commented Jun 22, 2023

image

on vsc(Mac Venture 13.4.1), the preview of *.d2 makes error now.
Until a few days ago, it worked well.

but on terminal, d2 is working well.

//flow.d2
x -> y
$ d2 flow.d2
success: successfully compiled flow.d2 to flow.svg in 55.019709ms
@alixander
Copy link
Contributor

@jacealan the error message is right. the environment that you're running d2 in terminal likely just doesn't have the env var set. come to think of it though, it is a fault on our side that we treat that as a fatal error. i've made an issue to address here: terrastruct/d2#1436

@BarryNolte
Copy link
Collaborator

I couldn't reproduce this (not for lack of trying), but I totally believe it's happening. @alixander you beat me to this solution.

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

3 participants