Skip to content
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

dot2tex exits with status 0 (success) on error #82

Open
CyberShadow opened this issue Mar 28, 2020 · 0 comments
Open

dot2tex exits with status 0 (success) on error #82

CyberShadow opened this issue Mar 28, 2020 · 0 comments

Comments

@CyberShadow
Copy link

$ touch a
$ dot2tex a
ERROR    Parse error:

^
Expected {'graph' | 'digraph'}  (at char 0), (line:1, col:1)
ERROR    Failed to parse the input data. Is it a valid dot file?
Try to input xdot data directly. Example:
    dot -Txdot file.dot | dot2tex > file.tex

If this does not work, check that you have an updated version of PyParsing and
Graphviz. Users have reported problems with old versions. You can also run
dot2tex in debug mode using the --debug option:
    dot2tex --debug file.dot
A file dot2tex.log will be written to the current directory with detailed
information useful for debugging.
$ echo $?
0

This causes problems when running the software in a Makefile - bad/incomplete output is considered valid by build systems, and ends up cached and fed as input to other tools, which then result in confusing errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant