jbn / IJuliaPortrayals.jl

IPython-style conveinence wrappers for IJulia.
Other
9 stars 3 forks source link

"There was an error in your dot file syntax." #4

Open acdenhartog opened 8 years ago

acdenhartog commented 8 years ago

Getting this error when using GraphViz(...) including the demo examples and GraphViz(to_dot(g)).
Can anyone replicate?

I am using GraphViz on Windows, downloaded and installed today.
Passing demo examples to dot/neato with cmd manually works just fine.

jbn commented 8 years ago

I'm just heading out the door for the night, but I'll touch base Sunday. I don't have a Windows box, so it's entirely possible it's broken there. Hard to test graphviz on Travis.Ci.

acdenhartog commented 8 years ago

I looked into the source code, surprisingly neat and simple stuff.

dot was giving exit code -9223372036854775808, and I have no idea why. But simply ignoring that code works fine.

jbn commented 8 years ago

@acdenhartog Any chance you can create a gist of your notebook and share the link here? I haven't been able to figure out exit code -9223372036854775808. That, and list your Window's, and your

dot -version julia version 0.4.1

I haven't been able to replicate this on my roommates Windows laptop. Thanks!

acdenhartog commented 8 years ago

I do not think you will be able to reproduce this...

Julia version 0.4.1 dot - graphviz version 2.38.0 and using Windows 10 64 bit.

As noted before, simply removing the exit code check solves the issue for me. As far as I know dot is constructing the graphs correctly. I am pretty sure that dot will print to standard error if something actually goes wrong. I would assume that graphviz exit codes are meaningless then.

Also nothing unexpected happened when I gave dot bad inputs and just let it continue; it does not show the graph but it does not crash the kernel or anything bad like that.