forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to visualisations for xdot (pantsbuild#18421)
xdot was having trouble consuming the dot files generated by the `--engine-visualize-to` option. - the comment with the queries was all on one line, which exceeded the 16k character limit. I simply printed them on multiple lines - the double escaping led to `unexpected char b'\\'` errors, because it found `\\\"`. We manually expand `"` to `\\\"`. I found removing that worked anyhow, I think there's escaping happening in the format call later ~I broke up the rule name and its value on separate lines, so the lines are just a bit shorter~ turns out fmt_for_graph is used by the normal fmt method, so this has wider effects. Also I have no idea what I'm doing with Rust and just followed along when the compiler suggested things.
- Loading branch information
Showing
3 changed files
with
64 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters