-
Notifications
You must be signed in to change notification settings - Fork 4
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
Extension give error in VSC - Command "dot" failed. MESSAGE:spawn dot ENOENT #1
Comments
Looks like this extension requires graphviz installed. I've installed graphviz via homebrew on my Macbook and I do not get that error anymore Fix by: However, the |
Hi |
After looking into this I can conclude that this is a bug, a dependency of the one of the extension's dependencies is an installation of |
Yes. That works fine in any of the directory that contains .tf of my repo. |
Update installation guide in accordance with #1
@adamiBs this is still outstanding for me on a machine with TF 1.4.0 and GraphViz 7.1.0 on WIndows 10 22H2. I can successfully run a TF Graph in the directory with my TF files. |
Hi @blckpythn, |
Hello @adamiBs . Thank you for making such a cool extension! Unfortunately I'm having similar issues as those above mentioned. I figured I'd post my issue/setup in case it helps others troubleshoot too.
Describe the bug While `terraform graph` works just fine in CLI, the extension Terraform Live Graph doesn't work. I got a similar message as the one [above](https://github.com//issues/1#issue-1620267017) about cmd dot failing. . To Reproduce Steps to reproduce the behavior:
Expected behavior For the extension to successfully graph my infrastructure as `terraform graph` does Screenshots ![image](https://user-images.githubusercontent.com/56422761/225164253-420c2b73-baed-4b2a-b0ca-3f3d5b274123.png) Looking at the 3 columns (left to right), you can see that I have .tf files open. I also opened the live graph extension via the cmd pallete. And to confirm files are valid/TF is working fine, `terraform graph` output is shown in last column Versions (please complete the following information):
Additional context I've restarted Code, my computer, and have ensured that graphviz is installed on my machine (2.42.2-3build2). I've also tried a different Terraform codebase and nothing was still graphed (via the extension). |
Hi @crc8109 & @TinLe, |
Is this what you're looking for?
|
Exactly 😁. |
I’ll look into it, thanks for the quick response. |
Does the extension try to run terraform graph in the system context? |
Hello @adamiBs . Here's the output related to the extension:
|
I've done the following in
Please check version |
Ok, it seems unrelated specifically to execution of Do |
Terraform commands do work, whether I run as administrator or not. |
Here is the log output:
The right pane for |
Thanks for trying to patch this so quickly @adamiBs ! I installed the update and ran the same cmds as before. Here's the output:
Please lmk if there's anything else I can do to help |
It seems as if the extension has loaded correctly. And the small white square is a "correct" state, an immediate workaround would be to reload the extension in a working project. I will create a new bug to track the issue you've described. #15 |
I opened a .tf file, then Cmd-Shift-p and get the above error. I get a blank
Terraform Live Graph
pane on the right side of my .tf code in VSC.I am using Terraform Live Graph v0.0.1
OSX 13.2.1
Macbook M2 Pro
Visual Code Studio:
Terraform v1.4.0 on darwin_arm64
The text was updated successfully, but these errors were encountered: