Code Monkey home page Code Monkey logo

Comments (26)

hao-lee avatar hao-lee commented on June 12, 2024

如果要添加注释的话还是推荐用Graphviz 官方文档里面的注释语法,也就是 /* *///,和 C 语言一样。不过,# 开头的行应该也会被忽略才对,但是从图中看是第 8 行报告了词法错误,说明插件的词法分析部分有问题,没有正确的将第 8 行忽略掉。我粗略看了下,如果在第 8 行回车一下错误就消失了,即只要 # 行不是最后一行就可以了。我基本知道错在哪了,目测这两天就能发个新版本,敬请期待!

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

v1.5.0 已经修复完成了,在 Sublime 内使用 Package Control 升级插件即可。


v1.5.0 has fixed this problem. Please upgrade this plugin in Sublime using Package Control.

from graphvizer.

fivedoumi avatar fivedoumi commented on June 12, 2024

image

我这还是渲染不了,已然提示 Loading images...

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

这就奇怪了,打开控制台看看有没有什么报错吧,快捷键是 Ctrl + `(Esc下方的波浪号键)

from graphvizer.

fivedoumi avatar fivedoumi commented on June 12, 2024

image

console没报错信息,然后我去png image的生成路径去 查看,没找到graphviz.png 文件,只找到graphviz.dot。

image

from graphvizer.

fivedoumi avatar fivedoumi commented on June 12, 2024

看起来是 .png文件没成功生成,sublime无法载入。

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

这就很奇怪了,dot 命令的路径有没有配置正确啊。在 cmd 里用命令 dot xxx.dot -Tpng -o out.png 试试能不能生成图片。没有错误却又生成不了图片这就很诡异了。

from graphvizer.

fivedoumi avatar fivedoumi commented on June 12, 2024

image
是可以生成的,确实很诡异。

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

我在另一台Win7上试了下没问题,这应该跟平台无关,毕竟Linux和Mac都没问题。你再试试编辑文件比如随便敲几个空格触发下图片生成。

from graphvizer.

fivedoumi avatar fivedoumi commented on June 12, 2024

这个我也试过,没有效果。
我是win10.

from graphvizer.

fivedoumi avatar fivedoumi commented on June 12, 2024

今天发现 atom下的graphviz插件更好用。。。。转到atom 了

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

好吧,atom那个没法自动刷新吧

from graphvizer.

fivedoumi avatar fivedoumi commented on June 12, 2024

有的,可以试试渲染。
而且语法高亮,自动提示,错误检查, 也很便捷。

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

还有自动提示?怎么提示的,是IDE那种代码补全吗

from graphvizer.

fivedoumi avatar fivedoumi commented on June 12, 2024

对啊,自动补全,你可以试试看。
graphviz-preview-plus ,language-dot 这两个atom插件。

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

如果只是单词补全的话,Sublime 也可以装插件。如果是语义补全直接能提示出node或edge的属性列表的话那就很高级了。

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

Issue 我先关闭了 😅 ,另一个已解决 Issue 里面有人用 Win10 测过了,可以用,我觉得平台不应该是问题,以后还需要帮助的话再打开~

from graphvizer.

pinghe avatar pinghe commented on June 12, 2024

建议,当保存时或自动保存时才刷新图片

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

@pinghe 这样似乎不太方便啊,不过可以提供一个选项来根据个人需要进行如此配置

from graphvizer.

pinghe avatar pinghe commented on June 12, 2024

谢谢。

当图很复杂的这种场景下,在保存时更新很有用

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

@pinghe 已添加功能,关闭实时渲染后,图片只有在保存文件时更新,详情参见主页 README

from graphvizer.

pinghe avatar pinghe commented on June 12, 2024

多谢

from graphvizer.

pinghe avatar pinghe commented on June 12, 2024

如果dot文件还未命名,则默认在image_dir 目录下生成graphviz.png,如果一旦命名了,则生成的文件名,建议和dot文件名一致。这样多文件同时编辑时不会混淆

from graphvizer.

pinghe avatar pinghe commented on June 12, 2024

另外,更新配置项后,不能实时生效,需要重启sublimetext

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

如果dot文件还未命名,则默认在image_dir 目录下生成graphviz.png,如果一旦命名了,则生成的文件名,建议和dot文件名一致。这样多文件同时编辑时不会混淆

问题已经新建 Issue 追踪 #11

from graphvizer.

hao-lee avatar hao-lee commented on June 12, 2024

另外,更新配置项后,不能实时生效,需要重启sublimetext

问题已经新建 Issue 追踪 #12

from graphvizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.