Skip to content

Commit 3380e0e

Browse files
committed
Fix hang when printing dot graphs from the CLI
1 parent b26eff1 commit 3380e0e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cli/src/parse.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ pub fn parse_file_at_path(parser: &mut Parser, opts: ParseFileOptions) -> Result
104104
_ => parser.parse(&source_code, None),
105105
};
106106

107+
parser.stop_printing_dot_graphs();
108+
107109
let stdout = io::stdout();
108110
let mut stdout = stdout.lock();
109111

cli/src/test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ pub fn run_tests_at_path(
9090
&mut corrected_entries,
9191
)?;
9292

93+
parser.stop_printing_dot_graphs();
94+
9395
if failures.len() > 0 {
9496
println!("");
9597

@@ -719,7 +721,7 @@ code
719721
---
720722
721723
; Line start comment
722-
(a
724+
(a
723725
; ignore this
724726
(b)
725727
; also ignore this

0 commit comments

Comments
 (0)