From f7583e465f8f2a68cdd9d51f711b92af3b2b8fa3 Mon Sep 17 00:00:00 2001 From: LSTM-Kirigaya <1193466151@qq.com> Date: Mon, 9 Dec 2024 19:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=20linter=20=E7=9A=84?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=20pipeline=20=E6=9E=B6=E6=9E=84=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/diagnostics/iverilog.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/diagnostics/iverilog.rs b/src/diagnostics/iverilog.rs index bc03fcc..cac8bff 100644 --- a/src/diagnostics/iverilog.rs +++ b/src/diagnostics/iverilog.rs @@ -52,6 +52,17 @@ impl AbstractLinterConfiguration for IverilogConfiguration { ) -> Vec { let mut diagnostics = Vec::::new(); + let invoke_name = self.get_invoke_name("iverilog"); + let pathbuf = uri.to_file_path().unwrap(); + let path_string = pathbuf.to_str().unwrap(); + + let mut process = Command::new(invoke_name) + .stdin(Stdio::piped()) + .stderr(Stdio::piped()) + .stdout(Stdio::piped()) + .arg("-t null") + .arg(path_string) + .spawn(); diagnostics