Comments (21)
@AndrewMagerman @kwoodham
Hi, This is indeed a problem. Sublime Text doesn't provide an api to watch syntax changing, so the image rendering can't be triggered by setting syntax to Graphviz (Dot)
. For now, the only way to trigger the rendering process is editing the content.
I have planned to fix this problem using some tricks, it will be released in next release. đ
from graphvizer.
@AndrewMagerman Hi, check the latest release. đ It's perfect!
from graphvizer.
Same issue for me on Windows 10 - I do not see a graphvizer.png
generated in the system temp folder, and the "Loading image..." displays in Sublime Text. I'm confirmed that dot
is in the Windows path.
from graphvizer.
@AndrewMagerman
Hi,
It seems that you didn't set the syntax to Graphviz (Dot)
. You can do this by View -> Syntax
menu or clicking the bottom right corner of Sublime Text window.
from graphvizer.
@kwoodham
Hi,
You can press Ctrl + ~
to open the sublime console. If these are some errors, you can post them here to help me debug plugin. Thanks!
from graphvizer.
from graphvizer.
If the graphviztemp
directory does exist, I think it may because this directory doesn't have permission to write.
from graphvizer.
from graphvizer.
Andrew's experience is the same as mine: the plugin is working fine now - I found that I needed to make an edit to the dot file before the image was rendered (something as simple as deleting a ";" and restoring it) - So it appears that the dot command is kicked off by a modification to the dot.
This isn't a problem for me now that I understand the solution. Thank you for your excellent work, hao-lee!
Kurt
from graphvizer.
from graphvizer.
@AndrewMagerman
Hi AndrewMagerman, thanks for your suggestion. This is indeed useful and will be enhanced in the next release.
from graphvizer.
from graphvizer.
I'm still seeing this issue of needing to edit the contents for the image to appear.
from graphvizer.
@Gerst20051 Try to update the plugin to the latest version
from graphvizer.
@hao-lee I had just installed it for the first time today.
from graphvizer.
Let me know if theres any more details I can provide.
from graphvizer.
I'm still seeing this issue of needing to edit the contents for the image to appear.
@Gerst20051
Hi, you can describe the steps that can reproduce this issue. If the image is not rendered, you can also see if there are some errors in Graphvizer Panel (Ctrl+Shift+x
to open it) or Sublime console (Ctrl+~
to open it). Thanks.
from graphvizer.
I am having this exact same issue.
Here is my dot file:
digraph test {
foo -> bar
foo -> baz
bar -> baz
}
And my settings:
{
// "dot_cmd_path" is the path of dot command. Here are some examples.
// For Windows: "D:\\Graphviz\\bin\\dot.exe"
// For Linux: "/usr/bin/dot"
// For OSX: "/usr/bin/dot"
// If you have added this path to the PATH environment variable, you can
// use "dot" instead of the full absolute path.
"dot_cmd_path": "dot",
// If the dot command takes more than `dot_timeout` seconds, it will be
// terminated. The default value is 3 seconds.
"dot_timeout": 3,
// "show_image_with" controls how to show the image.
// The default value is "layout", so the image will be shown in a separated
// layout by default. If you want to show it in a new window instead,
// change the following value to "window". If you just want to show the image
// in a new tab, change the value to "tab".
"show_image_with": "layout",
// "image_dir" controls where the image is saved. If the value is "",
// system temporary directory is used. You can set it to other directory.
// Example for Windows: "E:\\homework\\image\\"
// Example for Linux/OSX: "/home/haolee/image/"
"image_dir": "/Users/chrispenny/Developer/temp",
// The default behavior is rendering the image in real time.
// If set to false, the image will only be rendered when the file is saved.
"render_in_realtime": true
}
Note that I have correctly installed graphviz and can run dot -v
in the terminal (and can successfully render my test file). I installed the sublime text package today, so I imagine it is at the latest version.
When I open the console, I see this error message only the first time it tries to process a file:
Exception in thread Thread-2:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "./python3.3/threading.py", line 858, in run
File "/Users/chrispenny/Library/Application Support/Sublime Text 3/Installed Packages/Graphvizer.sublime-package/graphvizer.py", line 67, in dot_thread
with open(file=self.dot_file, mode="w", encoding="utf-8") as fd:
TypeError: invalid file: None
I can imagine that the python script getting None
as the file would be an issue!
Subsequent times I try closing and opening the graphvizer window (ctrl-shift-g
) I see this in the console: decode image failed
However, when I open the graphvizer panel, I see this message: [2019-04-30 12:47:47] - No error occurred
I have tried leaving my image_dir
blank as well as trying all sorts of different directories (based on the advice above), but no luck.
Hope this helps!
from graphvizer.
Forgot to mention I am on macOS 10.14 (Mojave)
from graphvizer.
Same issue on Mojave 10.14.5
Thanks
from graphvizer.
@panchtox
Hi, you can try to update to the latest version. If the problem still exists, press `CMD+`` and see if there are some errors in there. Thanks.
from graphvizer.
Related Issues (20)
- TimeoutExpired exception not found HOT 2
- The image file name should be consistent with the dot file name HOT 1
- Settings should take effect without restarting Sublime HOT 1
- Does not work on windows 10 HOT 5
- Navigating in image HOT 8
- ĺ˝ĺçćŹćŻĺŚćŻćä¸ćďź HOT 2
- Feature Request: Display Custom Images HOT 2
- v3 is not live HOT 10
- ĺŽćść¸˛ććśďźćĽĺżčžĺşçĺ珌串ćéŽé˘ HOT 1
- Use the side-by-side settings editor HOT 2
- UTF8 text is not supported? HOT 3
- How to open graph in a Graphvizer Viewer window? HOT 4
- Unable to render images, Python and Permission errors? HOT 2
- ST4 "Go to Definition" and Theme Selection Disabled when Plugin Installed HOT 10
- Image not displaying when viewing HTML document in Chrome HOT 1
- Image has not been rendered HOT 1
- 'dot' is not recognized as an internal or external command HOT 6
- Queue being overflowed on frequent changes in source HOT 1
- Support PlantUML HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphvizer.