EFanZh / Graphviz-Preview

Extension for Visual Studio Code to preview Graphviz (DOT) files.
https://marketplace.visualstudio.com/items?itemName=EFanZh.graphviz-preview
MIT License
67 stars 6 forks source link

In visual code: it warns "Cannot read property 'on' of undefined" #26

Closed Luzy1130 closed 4 years ago

Luzy1130 commented 4 years ago

image

if some one can tell me what's wrong with it and how to solve? thanks

vsc version: 1.39.1

EFanZh commented 4 years ago

What is your operating system and graphvizPreview.dotPath configuration?

Luzy1130 commented 4 years ago

What is your operating system and graphvizPreview.dotPath configuration?

image OS: mac catalina(10.15)

EFanZh commented 4 years ago

The graphvizPreview.dotPath configuration should be set to the path of the dot executable, not the directory containing it.

Luzy1130 commented 4 years ago

The graphvizPreview.dotPath configuration should be set to the path of the dot executable, not the directory containing it.

OK, the problem is solved, thanks.