From 34ea4be7edb83e1df306d514a85e9112a680e9c6 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Sat, 24 Dec 2022 17:46:16 +0900 Subject: [PATCH] Update register.rs --- compiler/erg_compiler/context/register.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/erg_compiler/context/register.rs b/compiler/erg_compiler/context/register.rs index fa0345c4..51717a80 100644 --- a/compiler/erg_compiler/context/register.rs +++ b/compiler/erg_compiler/context/register.rs @@ -1343,9 +1343,10 @@ impl Context { match Command::new("pylyzer") .arg("--dump-decl") .arg(path.to_str().unwrap()) - .output() + .spawn() + .and_then(|mut child| child.wait()) { - Ok(out) if out.status.success() => { + Ok(status) if status.success() => { if let Some(path) = Self::resolve_decl_path(&self.cfg, Path::new(&__name__[..])) {