-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Generating --dot format report output dot file with wrong syntax #18032
Comments
That appears to be a design flaw of the dot language. The
Note that the curly braces come from the analyzed source code. I guess you are analyzing the following code: |
After little research i understood that curly braces dont affect error, only double slashes "\\". |
Looking at the actual implementation of https://gitlab.com/graphviz/graphviz/-/blob/main/lib/cgraph/scan.l#L131-137 That does not really match with the way I would understand the documentation, and it appears that the dot developers weren't really sure about it either. They have been going back and forth with the implementation. I guess they are just as confused as I am ;-) I particularly like the message of the last commit
History of string literal parsing:
We'll change CodeQL to produce output in dot format that can be interpreted by the current version of graphviz. Thanks for reporting. As a workaround you can edit the generated |
My commands:
codeql database analyze test C:\sast\codeql-main\csharp\ql\test\shared\PrintAst.ql --format=dot --output=result1.dot
Than i trying to print it with graphviz:
dot -Tps result1.dot\cs\print-ast.dot -o out1.eps
Error: result1.dot\cs\print-ast.dot: syntax error in line 59944 near '{'
Line:
How to get rid with curly braces placements from cli command?
The text was updated successfully, but these errors were encountered: